This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26687] gcc -O1 -fno-pic generates bad code that references uninitialized r31
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 09:57:30 -0000
- Subject: [Bug target/26687] gcc -O1 -fno-pic generates bad code that references uninitialized r31
- References: <bug-26687-12349@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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