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 target/26687] gcc -O1 -fno-pic generates bad code that references uninitialized r31



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-03-15 09:57 -------
with powerpc-unknown-linux and 4.1.0 I get (-O1 -fno-pic -mbss-plt)

broken:
        cmpwi 7,4,0
        beq 7,.L2
        lis 9,.LC0@ha
        lfd 0,.LC0@l(9)
        b .L4
.L2:
        lis 9,.LC1@ha
        lfd 0,.LC1@l(9)
.L4:
        stfd 0,0(3)
        blr


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
   GCC host triplet|gcc version 4.0.0 20041026  |
                   |(Apple Computer, Inc. build |
                   |4061), OS                   |
 GCC target triplet|gcc version 4.0.0 20041026  |powerpc-apple-darwin
                   |(Apple Computer, Inc. build |
                   |4061), OS                   |
           Keywords|                            |wrong-code


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


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