This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
- To: gcc-gnats at gcc dot gnu dot org
- Subject: bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
- From: "Laurynas Biveinis" <lauras at softhome dot net>
- Date: 22 Jun 2001 15:22:21 -0000
>Number: 3374
>Category: bootstrap
>Synopsis: Bootstrap failure with -O -fomit-frame-pointer
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Jun 22 09:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Laurynas Biveinis
>Release: 3.0 20010615 (prerelease)
>Organization:
>Environment:
System: Linux lauras.lt 2.4.5 #1 Pr Bir 18 19:52:02 EET 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --prefix=/usr/local
>Description:
When bootstrapping with BOOT_CFLAGS="-O -fomit-frame-pointer -fno-defer-pop \
-fno-thread-jumps", stage2 compiler gets miscompiled and thus segfaults later
on unwind-dw2.c. I think this is a miscompilation and not a problem related
directly with unwind-dw2.c, because stage2 compiler build with other
BOOT_CFLAGS options is able to compile unwind-dw2.c, using the same
optimization settings.
>How-To-Repeat:
$ mkdir obj
$ cd obj
$ ../configure --enable-languages=c
$ make bootstrap BOOT_CFLAGS="-O -fno-defer-pop -fno-thread-jumps -fomit-frame-pointer"
[...]
./xgcc -B./ -B/usr/local/i686-pc-linux-gnu/bin/ -isystem /usr/local/i686-pc-linux-gnu/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fexceptions -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:219: warning: implicit declaration of function `strlen'
../../gcc/unwind-dw2.c: In function `execute_stack_op':
../../gcc/unwind-dw2.c:300: warning: `result' might be used uninitialized in this function
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:886: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1103: warning: implicit declaration of function `memcpy'
../../gcc/unwind-dw2.c: At top level:
../../gcc/unwind-dw2.c:1123: 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[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory `/usr/local/cvs/gcc-3.0/gcc/obj/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/usr/local/cvs/gcc-3.0/gcc/obj/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/usr/local/cvs/gcc-3.0/gcc/obj/gcc'
make: *** [bootstrap] Error 2
>Fix:
Beyond my knowledge.
>Release-Note:
>Audit-Trail:
>Unformatted: