This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13807] New: cc1 segfaults compiling specific thumb code
- From: "travis at danger dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2004 02:48:23 -0000
- Subject: [Bug target/13807] New: cc1 segfaults compiling specific thumb code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Summary:
Compiling the attached particular piece of code as thumb at -O2 causes the
compiler to seg fault inside asm_fprintf. It has been reproduced using gcc
3.3.2 on cygwin and gcc 3.3.1 on macos x. All were compiled using the same
options.
Release:
gcc 3.3.2 release
Environment:
Linux version 2.4.22-gentoo-r4 (root@varmit) (gcc version 3.2.3 20030422
(Gentoo Linux 1.4 3.2.3-r3, propolice)) #1 SMP Sat Jan 10 17:26:16 PST 2004
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: arm-elf
Configured with: ../gcc-3.3.2/configure --prefix=/usr/local/armdev-3.3.2 --
target=arm-elf --program-prefix=arm-elf- --program-suffix=332 --with-newlib --
enable-languages=c
Thread model: single
gcc version 3.3.2
to repeat (where pco_trace.i is the attached file):
arm-elf-gcc332 -v --save-temps -c -mthumb -fno-builtin -O2 -W -Wall -mthumb-
interwork -fsigned-char -funsigned-bitfields -o pco_trace.o pco_trace.i
output is:
Reading specs from /usr/local/armdev-3.3.2-withsuffix/bin/../lib/gcc-lib/arm-
elf/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/usr/local/armdev-3.3.2 --
target=arm-elf --program-prefix=arm-elf- --program-suffix=332 --with-newlib --
enable-languages=c
Thread model: single
gcc version 3.3.2
/usr/local/armdev-3.3.2-withsuffix/bin/../lib/gcc-lib/arm-elf/3.3.2/cc1 -
fpreprocessed pco_trace.i -quiet -dumpbase pco_trace.i -mthumb -mthumb-
interwork -auxbase-strip pco_trace.o -O2 -W -Wall -version -fno-builtin -
fsigned-char -funsigned-bitfields -o pco_trace.s
GNU C version 3.3.2 (arm-elf)
compiled by GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3,
propolice).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=129117
pco_trace.c: In function `read_str2ind_file':
pco_trace.c:147: warning: enumeration value `SCAN_SPACE' not handled in switch
pco_trace.c:58: warning: `fd' might be used uninitialized in this function
pco_trace.c:153: 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.
--
Summary: cc1 segfaults compiling specific thumb code
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: travis at danger dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13807