This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11252] New: Code generation bug
- From: "simonmar at microsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2003 16:10:44 -0000
- Subject: [Bug optimization/11252] New: Code generation bug
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11252
Summary: Code generation bug
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: simonmar@microsoft.com
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
The attached file (how *does* one attach files here?) generates incorrect code
when compiled with GCC 3.3 on sparc-sun-solaris2.8.
Relevant details:
ystem type: SunOS usf-cf-sparc-solaris-2 5.8 Generic_108528-17 sun4u sparc
SUNW,Ultra-60.
GCC configure options:
$ ./configure --prefix=$HOME --enable-languages=c,c++
Command line:
$ gcc -O -S Test.c
Description of the problem: the generated assembly contains the following
chunk (around line 26):
.LL6:
ld [%g1+%lo(MainCapability+116)], %g1
ld [%g1+24], %g1
cmp %g1, 0
bne .LL7
add %i0, -4, %i0
...
That 'bne' should be 'bne,a', as far as I can tell.