Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 9382
Product:  
Component:  
Status: RESOLVED
Resolution: INVALID
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: glebourgeois@amadeus.net
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
gcc-bug.tar.gz gcc-bug.tar.gz application/x-gzip 2003-05-21 15:17 25.08 KB Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 9382 depends on: Show dependency tree
Show dependency graph
Bug 9382 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2003-01-21 11:36
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

------- Comment #1 From rutt@chezrutt.com 2003-03-24 12:11 -------
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.


------- Comment #2 From Dara Hazeghi 2003-05-07 22:58 -------
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
 

------- Comment #3 From Giovanni Bajo 2003-05-17 07:04 -------
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?

------- Comment #4 From Dara Hazeghi 2003-06-20 02:35 -------
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

------- Comment #5 From David Edelsohn 2003-06-28 02:39 -------
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.

------- Comment #6 From Andrew Pinski 2003-06-28 03:58 -------
*** Bug 11035 has been marked as a duplicate of this bug. ***

------- Comment #7 From Dara Hazeghi 2003-07-09 21:35 -------
*** Bug 11481 has been marked as a duplicate of this bug. ***

------- Comment #8 From Andrew Pinski 2003-07-28 22:09 -------
*** Bug 11698 has been marked as a duplicate of this bug. ***

------- Comment #9 From Jeffery.Martinez@shell.com 2003-07-28 22:25 -------
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.

------- Comment #10 From Andrew Pinski 2003-08-13 23:21 -------
*** Bug 11909 has been marked as a duplicate of this bug. ***

------- Comment #11 From Andrew Pinski 2003-08-14 23:03 -------
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.

------- Comment #12 From Andrew Pinski 2003-09-23 17:10 -------
*** Bug 12376 has been marked as a duplicate of this bug. ***

------- Comment #13 From Andrew Pinski 2003-09-24 05:00 -------
*** Bug 12384 has been marked as a duplicate of this bug. ***

------- Comment #14 From Andrew Pinski 2003-10-20 15:00 -------
*** Bug 12687 has been marked as a duplicate of this bug. ***

------- Comment #15 From Andrew Pinski 2003-12-31 20:34 -------
*** Bug 13533 has been marked as a duplicate of this bug. ***

------- Comment #16 From Dara Hazeghi 2004-01-18 02:02 -------
*** Bug 13727 has been marked as a duplicate of this bug. ***

------- Comment #17 From Andrew Pinski 2004-03-19 18:30 -------
*** Bug 14656 has been marked as a duplicate of this bug. ***

------- Comment #18 From Andrew Pinski 2004-04-25 13:31 -------
*** Bug 15122 has been marked as a duplicate of this bug. ***

------- Comment #19 From Andrew Pinski 2004-05-22 03:24 -------
*** Bug 15581 has been marked as a duplicate of this bug. ***

------- Comment #20 From Andrew Pinski 2004-08-16 16:51 -------
*** Bug 17049 has been marked as a duplicate of this bug. ***

------- Comment #21 From Andrew Pinski 2004-11-09 03:00 -------
*** Bug 18390 has been marked as a duplicate of this bug. ***

------- Comment #22 From Andrew Pinski 2005-01-17 15:43 -------
*** Bug 19483 has been marked as a duplicate of this bug. ***

------- Comment #23 From Andrew Pinski 2005-04-28 12:59 -------
*** Bug 21261 has been marked as a duplicate of this bug. ***

------- Comment #24 From Andrew Pinski 2005-05-07 19:33 -------
*** Bug 21446 has been marked as a duplicate of this bug. ***

------- Comment #25 From Andrew Pinski 2007-10-02 21:50 -------
*** Bug 33632 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug