This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11131] Unrelated declaration removes inline flag from function


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-09 13:06:28
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-06-09 13:06 -------
I see the same behivour on powerpc-apple-darwin6.6 on the mainline (20030609) :
[zhivago2:~/src/gccPRs] pinskia% gcc -O2 -S -o - pr11131.cc -DFOO=foo1;echo -----
;echo ----- ;gcc -O2 -S -o - pr11131.cc -DFOO=foo2
.text
        .align 2
        .globl __Z3barR1AILi0EE
__Z3barR1AILi0EE:
LFB5:
        stw r31,-4(r1)   <--- save the pic register
LCFI0:
        lwz r31,-4(r1) <-- restore the pic register
        b L__ZN1AILi0EE4foo1Ev$stub
LFE5:
        .align 2
__ZN1AILi0EE4foo1Ev:
L__ZN1AILi0EE4foo1Ev$stub:
LFB7:
L3:
        blr
LFE7:
.data
.constructor
.data
.destructor
        .align 1
-----
-----
.text
        .align 2
        .globl __Z3barR1AILi0EE
__Z3barR1AILi0EE:
LFB6:
        blr
LFE6:
.data
.constructor
.data
.destructor
        .align 1

This looks like it is exception handlering related in *.00.rtl extra for -DFOO=foo1:

;; Function void A<<anonymous> >::foo1() [with int <anonymous> = 0]

(note 2 0 3 NOTE_INSN_DELETED)

(insn 3 2 4 (set (reg/v/u/f:SI 118 [ this ])
        (reg:SI 3 r3 [ this ])) -1 (nil)
    (expr_list:REG_EQUIV (mem/u/f:SI (reg/f:SI 113 virtual-incoming-args) [4 this+0 S4 
A32])
        (nil)))

(note 4 3 5 NOTE_INSN_FUNCTION_BEG)

(note 5 4 6 NOTE_INSN_DELETED)

(note 6 5 7 1 NOTE_INSN_EH_REGION_BEG)

(note 7 6 8 0x1080180 NOTE_INSN_BLOCK_BEG)

(note 8 7 9 NOTE_INSN_DELETED)

(note 9 8 10 NOTE_INSN_DELETED)

(note 10 9 11 NOTE_INSN_DELETED)

(note 11 10 12 0x1080180 NOTE_INSN_BLOCK_END)

(note 12 11 13 1 NOTE_INSN_EH_REGION_END)

(jump_insn 13 12 14 (set (pc)
        (label_ref 19)) -1 (nil)
    (nil))

(barrier 14 13 15)

(code_label 15 14 16 3 "" [0 uses])

(insn 16 15 17 (set (reg:SI 3 r3)
        (reg:SI 119)) -1 (nil)
    (nil))

(call_insn 17 16 18 (parallel [
            (call (mem:SI (symbol_ref:SI ("&L___cxa_call_
unexpected$stub")) [0 S4 A8])

 
           
 
   (const_int 32 [0x20]))
      
      (use (const_int 0 [0x0]))
            (clobber (scratch:SI))
        ]) -1 (nil)
    (expr_list:REG_NORETURN (const_int 
0 [0x0])
        (nil))
    (expr_list
 (use (reg:SI 3 r3))
        (nil))
)

(barrier 18 17 19
)

(code_label 19 18 20 4 "" [0 uses])

(note 20
 19 22 NOTE_INS
N_FUNCTION_END)

(code_label 22 20 
0 2 "" [0 uses])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]