This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21153] New: gcc segfaults compiling qemu
- From: "developer at isl-gbr dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2005 15:45:01 -0000
- Subject: [Bug c++/21153] New: gcc segfaults compiling qemu
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
System is uniarch x86_64(AMD64), built from scratch.
gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --host=x86_64-pc-linux-gnu
--build=x86_64-pc-linux-gnu --prefix=/usr --libexecdir=/usr/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,objc,f77,java : (reconfigured) ../gcc-3.4.3/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--libexecdir=/usr/lib --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,objc,f77,java --disable-multilib
Thread model: posix
gcc version 3.4.3
happened with my previous systems too (not sure anymore but i think it was
gcc3.3.3 and 3.4.1)
Happens with default qemu default optimization :
-Wall -O2 -g -fno-strict-aliasing
when setting to -O0 it compiles, but doesnt work (segfaults during runtime)
the error during compilation is:
target-i386/op.c
In file included from
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c:22:
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/exec.h: In function
`helper_fldt':
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/exec.h:475: warning:
cast to pointer from integer of different size
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/exec.h: In function
`helper_fstt':
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/exec.h:480: warning:
cast to pointer from integer of different size
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c: In function
`op_goto_tb0':
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c:1277: warning:
cast to pointer from integer of different size
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c: In function
`op_goto_tb1':
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c:1282: warning:
cast to pointer from integer of different size
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c: In function
`op_divw_AX_T0':
/usr/src/emulator/qemu-snapshot-2005-04-18_23/target-i386/op.c:374: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/usr/src/emulator/qemu-snapshot-2005-04-18_23/i386-user'
make: *** [all] Error 1
--
Summary: gcc segfaults compiling qemu
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: developer at isl-gbr dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21153