bootstrap/5102: Bootsrap failure in libobjc with -finline-functions

gbeauchesne@mandrakesoft.com gbeauchesne@mandrakesoft.com
Thu Dec 13 09:03:00 GMT 2001


>Number:         5102
>Category:       bootstrap
>Synopsis:       Bootsrap failure in libobjc with -finline-functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 13 05:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Gwenole Beauchesne
>Release:        gcc version 3.1 CVS snapshots 20011203 and 20011213
>Organization:
>Environment:
i586-mandrake-linux-gnu
>Description:
Configured with: ../configure --enable-languages=c,objc
CFLAGS: -O1 -finline-functions

[... Generating libobjc ...]
/home/gb/rpm/BUILD/gcc-3.1/objs/gcc/xgcc -B/home/gb/rpm/BUILD/gcc-3.1/objs/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -fgnu-runtime -c -I. -I../../../libobjc -O1 -finline-functions -DIN_GCC -DIN_TARGET_LIBS -I../../../libobjc/objc -I../../../libobjc/../gcc -I../../../libobjc/../gcc/config -I../../gcc -I../../../libobjc/../include ../../../libobjc/linking.m -o linking.o
../../../libobjc/linking.m: In function `_GLOBAL__I___objc_linking':
../../../libobjc/linking.m:39: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [linking.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

* File linking.m compiles fine with -O1 only:

[gb@no libobjc]$ /home/gb/rpm/BUILD/gcc-3.1/objs/gcc/xgcc -B/home/gb/rpm/BUILD/gcc-3.1/objs/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -fgnu-runtime -c -I. -I../../../libobjc -DIN_GCC -DIN_TARGET_LIBS -I../../../libobjc/objc -I../../../libobjc/../gcc -I../../../libobjc/../gcc/config -I../../gcc -I../../../libobjc/../include ../../../libobjc/linking.m -o linking.o -O1

* But ICEs when suggesting inlining (-finline-functions):

[gb@no libobjc]$ /home/gb/rpm/BUILD/gcc-3.1/objs/gcc/xgcc -B/home/gb/rpm/BUILD/gcc-3.1/objs/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -fgnu-runtime -c -I. -I../../../libobjc -DIN_GCC -DIN_TARGET_LIBS -I../../../libobjc/objc -I../../../libobjc/../gcc -I../../../libobjc/../gcc/config -I../../gcc -I../../../libobjc/../include ../../../libobjc/linking.m -o linking.o -O1 -finline-functions
../../../libobjc/linking.m: In function `_GLOBAL__I___objc_linking':
../../../libobjc/linking.m:39: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>How-To-Repeat:
$ CFLAGS="-O1 -finline-functions" ../configure --enable-languages="c,objc"
$ make -j4 bootstrap-lean
>Fix:
Bootstrap succeeds provided that -finline-functions is not used.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list