------- Comment #2 from hjl at lucon dot org  2006-02-19 20:15 -------
Created an attachment (id=10877)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10877&action=view)
A testcase

This is the preprocess Linux kernel code for gcc 4.1 and 4.2. There are many
static functions, like pageout, have DWARF2 info like:

<1><9aee>: Abbrev Number: 78 (DW_TAG_subprogram)
     DW_AT_sibling     : <9bd1>
     DW_AT_name        : (indirect string, offset: 0x44b6): pageout
     DW_AT_decl_file   : 1
     DW_AT_decl_line   : 318
     DW_AT_prototyped  : 1
     DW_AT_type        : <8df5>
     DW_AT_inline      : 1      (inlined)

where pageout isn't inlined at all. Gcc 3.4.6 generates:

 <1><8eb1>: Abbrev Number: 84 (DW_TAG_subprogram)
     DW_AT_sibling     : <8fe0>
     DW_AT_name        : (indirect string, offset: 0x4182): pageout
     DW_AT_decl_file   : 1
     DW_AT_decl_line   : 295
     DW_AT_prototyped  : 1
     DW_AT_type        : <84b0>
     DW_AT_low_pc      : 0x318
     DW_AT_high_pc     : 0x3e4
     DW_AT_frame_base  : 1 byte block: 54       (DW_OP_reg4)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26364

Reply via email to