This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
Configured with: ../gcc-20030120/configure --prefix=/usr/local/gcc-3.3 --enable-languages=c,c++ --enable-shared --enable-threads=posix While bootstraping: it aborts with the following output ./xgcc -B./ -B/usr/local/gcc-3.3/powerpc-ibm-aix5.2.0.0/bin/ -isystem /usr/local/gcc-3.3/powerpc-ibm-aix5.2.0.0/include -isystem /usr/local/gcc-3.3/powerpc-ibm-aix5.2.0.0/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-20030120/gcc -I../../gcc-20030120/gcc/. -I../../gcc-20030120/gcc/config -I../../gcc-20030120/gcc/../include -DL_fixunsdfsi -c ../../gcc-20030120/gcc/libgcc2.c -o libgcc/./_fixunsdfsi.o ../../gcc-20030120/gcc/libgcc2.c: In function `__fixunsdfsi': ../../gcc-20030120/gcc/libgcc2.c:1161: error: unrecognizable insn: (insn:HI 11 10 12 0 0 (set (reg:CCEQ 122) (compare:CCEQ (ior:SI (gt:SI (reg:CCFP 121) (const_int 0 [0x0])) (eq:SI (reg:CCFP 121) (const_int 0 [0x0]))) (const_int 1 [0x1]))) -1 (insn_list 10 (nil)) (expr_list:REG_DEAD (reg:CCFP 121) (nil))) ../../gcc-20030120/gcc/libgcc2.c:1161: internal compiler error: in extract_insn, at recog.c:2175 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. gmake[3]: *** [libgcc/./_fixunsdfsi.o] Error 1 gmake[3]: Leaving directory `/save/Build-Gcc-20030120/gcc' gmake[2]: *** [stmp-multilib] Error 2 gmake[2]: Leaving directory `/save/Build-Gcc-20030120/gcc' gmake[1]: *** [stage1_build] Error 2 gmake[1]: Leaving directory `/save/Build-Gcc-20030120/gcc' gmake: *** [bootstrap] Error 2 Release: gcc version 3.3 20030120 (prerelease) Environment: AIX 5.2 AIX ld and as
From: John Ruttenberg <rutt@chezrutt.com> To: gcc-gnats@gcc.gnu.org, glebourgeois@amadeus.net, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org Cc: Subject: Re: bootstrap/9382: AIX 5.2 ../../gcc-20030120/gcc/libgcc2.c:1161: internal compiler error: in extract_insn, at recog.c:2175 Date: Mon, 24 Mar 2003 12:11:12 -0500 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9382 I have some more information about this. It seems to happen or not depending on which compiler I use to bootstrap. With 3.2.1 (binary from UCLA) and 2.9 (binary form IBM), I encounter the problem. With 2.95.3 (I bootstrapped), I do not encounter the problem. The fact that the problem can be reproduced with two different bootstrap compilers from such different releases leads me to suspect that perhaps there is some uninitialized variable involved. Or some other cause of undefined behavior. I don't know that much aboug gcc internals, but perhaps I can narrow down a little further somehow. But it will be time consuming and it would be good to know if anyone knows anything about this before I expend any energy on it.
From: Dara Hazeghi <dhazeghi@yahoo.com> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: bootstrap/9382: AIX 5.2 ../../gcc-20030120/gcc/libgcc2.c:1161: internal compiler error: in extract_insn, at recog.c:2175 Date: Wed, 7 May 2003 22:58:49 -0700 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gcc&pr=9382 Hello, I can confirm that with cross compilers of gcc 3.1, 3.3 branch and mainline (20030506), I cannot see the bug described in this report, that is to say, the testsuite builds fine. It looks to me rather as if the stage1 compiler is being miscompiled, given that as John Ruttenberg mentioned, it appears and disappears depending on the compiler used to bootstrap. Dara
State-Changed-From-To: open->feedback State-Changed-Why: Can you please confirm that your stage1/xgcc sends an internal compiler error when manually compiling the preprocessed source you attacched to this report? And in that case, what is the minimal command line that reproduces the compiler error?
Hello, just a reminder that this bug has been in feedback for a month awaiting a response to Giovanni's question. Is it possible for you to check whether this problem is present with gcc 3.3 still? Thanks, Dara
This is not a bug in GCC. The problem is that AIX 5.2 adds support for atoll(), but the cached copy of stdlib.h from AIX 5.1 and earlier do not have a prototype, so the return argument is interpreted incorrectly. The fix is to remove the "fixed" header file from the GCC cache of the version of GCC used to bootstrap on AIX 5.2.
*** Bug 11035 has been marked as a duplicate of this bug. ***
*** Bug 11481 has been marked as a duplicate of this bug. ***
*** Bug 11698 has been marked as a duplicate of this bug. ***
Subject: RE: AIX 5.2 ../../gcc-20030120/gcc/libgcc2.c :1161: internal compiler error: in extract_insn, at recog.c:2175 Could you please explain how to perform this fix--I don't understand what it is telling me to do exactly: This is not a bug in GCC. The problem is that AIX 5.2 adds support for atoll(), but the cached copy of stdlib.h from AIX 5.1 and earlier do not have a prototype, so the return argument is interpreted incorrectly. The fix is to remove the "fixed" header file from the GCC cache of the version of GCC used to bootstrap on AIX 5.2. How do I remove the "fixed" header file from the GCC cache of the version of GCC used to bootstrap on AIX 5.2? I have not even bootstrapped as far as I know? Please explain further if you can. Thanks, Jeffery Martinez Shell Information Technology International P.O. Box 20329, Houston, TX 77025-0329, United States of America Tel: +1 713-245 2774 Email: Jeffery.Martinez@shell.com Internet: http://www.shell.com -----Original Message----- From: pinskia at physics dot uc dot edu [mailto:gcc-bugzilla@gcc.gnu.org] Sent: Monday, July 28, 2003 5:09 PM To: Martinez, Jeffery JM SITI-ITDGA Subject: [Bug bootstrap/9382] AIX 5.2 ../../gcc-20030120/gcc/libgcc2.c:1161: internal compiler error: in extract_insn, at recog.c:2175 PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9382 pinskia at physics dot uc dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jm186390 at msxssc dot shell | |dot com ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-28 22:09 ------- *** Bug 11698 has been marked as a duplicate of this bug. *** ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
*** Bug 11909 has been marked as a duplicate of this bug. ***
Just so that everyone who needs to get this, I am putting this information in this bug. The file you want to get rid of is stdlib.h in PATHTOOLDGCC/lib/gcc-lib/powerpc-*/ oldgccversion/include.
*** Bug 12376 has been marked as a duplicate of this bug. ***
*** Bug 12384 has been marked as a duplicate of this bug. ***
*** Bug 12687 has been marked as a duplicate of this bug. ***
*** Bug 13533 has been marked as a duplicate of this bug. ***
*** Bug 13727 has been marked as a duplicate of this bug. ***
*** Bug 14656 has been marked as a duplicate of this bug. ***
*** Bug 15122 has been marked as a duplicate of this bug. ***
*** Bug 15581 has been marked as a duplicate of this bug. ***
*** Bug 17049 has been marked as a duplicate of this bug. ***
*** Bug 18390 has been marked as a duplicate of this bug. ***
*** Bug 19483 has been marked as a duplicate of this bug. ***
*** Bug 21261 has been marked as a duplicate of this bug. ***
*** Bug 21446 has been marked as a duplicate of this bug. ***
*** Bug 33632 has been marked as a duplicate of this bug. ***