public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) @ 2012-08-05 3:08 tommy-gccbugs at thorn dot ws 2012-08-05 3:14 ` [Bug c/54176] " tommy-gccbugs at thorn dot ws ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: tommy-gccbugs at thorn dot ws @ 2012-08-05 3:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176 Bug #: 54176 Summary: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: tommy-gccbugs@thorn.ws Created attachment 27938 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27938 Silly Sieve program lm32-elf-gcc -std=c99 -S sieve.c lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) sieve.c attached. Host: x86_64/openSUSE 12.1 Configured as as: ../binutils-2.22/configure --prefix=/opt/lm32 --target=lm32-elf ../gcc-4.7.1/configure --prefix=/opt/lm32 --target=lm32-elf --enable-languages=c --disable-libssp --disable-libgcc ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/54176] lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) 2012-08-05 3:08 [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) tommy-gccbugs at thorn dot ws @ 2012-08-05 3:14 ` tommy-gccbugs at thorn dot ws 2012-08-05 3:26 ` tommy-gccbugs at thorn dot ws ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tommy-gccbugs at thorn dot ws @ 2012-08-05 3:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176 --- Comment #1 from Tommy Thorn <tommy-gccbugs at thorn dot ws> 2012-08-05 03:14:30 UTC --- Looks like the front end is looping (recursively): gdb --args /home/opt/lm32/bin/../lib/gcc/lm32-elf/4.7.1/cc1 -quiet -v -iprefix /home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/ sieve.c -quiet -dumpbase sieve.c -auxbase sieve -std=c99 -version -o sieve.s ... (gdb) r GNU C (GCC) version 4.7.1 (lm32-elf) compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/sys-include" ignoring nonexistent directory "/home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/include" ignoring duplicate directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/include" ignoring duplicate directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/include-fixed" ignoring nonexistent directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/sys-include" ignoring nonexistent directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/include" #include "..." search starts here: #include <...> search starts here: /home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/include /home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/include-fixed End of search list. GNU C (GCC) version 4.7.1 (lm32-elf) compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 78ab8beae59d165771ba0b05d4300149 Program received signal SIGSEGV, Segmentation fault. build_decl_stat (loc=0, code=VAR_DECL, name=0x0, type=0x7ffff6f6f5e8) at ../../gcc-4.7.1/gcc/tree.c:4069 4069 { (gdb) bt #0 build_decl_stat (loc=0, code=VAR_DECL, name=0x0, type=0x7ffff6f6f5e8) at ../../gcc-4.7.1/gcc/tree.c:4069 #1 0x00000000005a66ce in make_tree (type=0x7ffff6f6f5e8, x=<optimized out>) at ../../gcc-4.7.1/gcc/expmed.c:5069 #2 0x000000000088e32d in force_const_mem (mode=SImode, x=0x7ffff26f50e0) at ../../gcc-4.7.1/gcc/varasm.c:3580 #3 0x00000000005b3116 in emit_move_insn (x=<optimized out>, y=<optimized out>) at ../../gcc-4.7.1/gcc/expr.c:3448 #4 0x000000000059ee9d in force_reg (x=0x7ffff26f50e0, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 #5 force_reg (mode=SImode, x=0x7ffff26f50e0) at ../../gcc-4.7.1/gcc/explow.c:656 #6 0x000000000059f44c in memory_address_addr_space (mode=SImode, x=0x7ffff26f50e0, as=0 '\000') at ../../gcc-4.7.1/gcc/explow.c:505 #7 0x0000000000592955 in change_address_1 (memref=0x7ffff26f7078, mode=SImode, addr=0x7ffff26f50e0, validate=<optimized out>) at ../../gcc-4.7.1/gcc/emit-rtl.c:1998 #8 0x00000000005b3172 in emit_move_insn (x=0x7ffff26f50c0, y=0x7ffff26f7078) at ../../gcc-4.7.1/gcc/expr.c:3471 #9 0x000000000059ee9d in force_reg (x=0x7ffff26f50a0, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 #10 force_reg (mode=SImode, x=0x7ffff26f50a0) at ../../gcc-4.7.1/gcc/explow.c:656 #11 0x000000000059f44c in memory_address_addr_space (mode=SImode, x=0x7ffff26f50a0, as=0 '\000') at ../../gcc-4.7.1/gcc/explow.c:505 #12 0x0000000000592955 in change_address_1 (memref=0x7ffff26f7048, mode=SImode, addr=0x7ffff26f50a0, validate=<optimized out>) at ../../gcc-4.7.1/gcc/emit-rtl.c:1998 #13 0x00000000005b3172 in emit_move_insn (x=0x7ffff26f5080, y=0x7ffff26f7048) at ../../gcc-4.7.1/gcc/expr.c:3471 #14 0x000000000059ee9d in force_reg (x=0x7ffff26f5060, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 #15 force_reg (mode=SImode, x=0x7ffff26f5060) at ../../gcc-4.7.1/gcc/explow.c:656 #16 0x000000000059f44c in memory_address_addr_space (mode=SImode, x=0x7ffff26f5060, as=0 '\000') at ../../gcc-4.7.1/gcc/explow.c:505 #17 0x0000000000592955 in change_address_1 (memref=0x7ffff26f7018, mode=SImode, addr=0x7ffff26f5060, validate=<optimized out>) at ../../gcc-4.7.1/gcc/emit-rtl.c:1998 #18 0x00000000005b3172 in emit_move_insn (x=0x7ffff26f5040, y=0x7ffff26f7018) at ../../gcc-4.7.1/gcc/expr.c:3471 #19 0x000000000059ee9d in force_reg (x=0x7ffff26f5020, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 .... goes on indefinitely (> 8000 entries). ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/54176] lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) 2012-08-05 3:08 [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) tommy-gccbugs at thorn dot ws 2012-08-05 3:14 ` [Bug c/54176] " tommy-gccbugs at thorn dot ws @ 2012-08-05 3:26 ` tommy-gccbugs at thorn dot ws 2012-08-05 3:29 ` [Bug target/54176] " pinskia at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tommy-gccbugs at thorn dot ws @ 2012-08-05 3:26 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176 --- Comment #2 from Tommy Thorn <tommy-gccbugs at thorn dot ws> 2012-08-05 03:26:16 UTC --- Forget the attached example, lm32-elf-gcc breaks as soon as any static or extern variable is used in a function. Fx: int x; int foo() { return x; } ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/54176] lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) 2012-08-05 3:08 [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) tommy-gccbugs at thorn dot ws 2012-08-05 3:14 ` [Bug c/54176] " tommy-gccbugs at thorn dot ws 2012-08-05 3:26 ` tommy-gccbugs at thorn dot ws @ 2012-08-05 3:29 ` pinskia at gcc dot gnu.org 2012-08-06 19:43 ` tommy-gccbugs at thorn dot ws 2014-03-02 22:03 ` lekernel at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-08-05 3:29 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Target| |m32-elf Component|c |target Severity|major |normal --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-08-05 03:29:17 UTC --- This is a target specific issue. Somehow it is deciding to force to constant memory over and over again. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/54176] lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) 2012-08-05 3:08 [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) tommy-gccbugs at thorn dot ws ` (2 preceding siblings ...) 2012-08-05 3:29 ` [Bug target/54176] " pinskia at gcc dot gnu.org @ 2012-08-06 19:43 ` tommy-gccbugs at thorn dot ws 2014-03-02 22:03 ` lekernel at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: tommy-gccbugs at thorn dot ws @ 2012-08-06 19:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176 --- Comment #4 from Tommy Thorn <tommy-gccbugs at thorn dot ws> 2012-08-06 19:42:45 UTC --- FWIW, it works in 4.5.3. I can narrow down the range if that's helpful. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/54176] lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) 2012-08-05 3:08 [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) tommy-gccbugs at thorn dot ws ` (3 preceding siblings ...) 2012-08-06 19:43 ` tommy-gccbugs at thorn dot ws @ 2014-03-02 22:03 ` lekernel at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: lekernel at gcc dot gnu.org @ 2014-03-02 22:03 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176 Sebastien Bourdeauducq <lekernel at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Sebastien Bourdeauducq <lekernel at gcc dot gnu.org> --- Fixed in trunk by Jon Beniston's recent patch. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-02 22:03 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-05 3:08 [Bug c/54176] New: lm32-elf-gcc: internal compiler error: Segmentation fault (program cc1) tommy-gccbugs at thorn dot ws 2012-08-05 3:14 ` [Bug c/54176] " tommy-gccbugs at thorn dot ws 2012-08-05 3:26 ` tommy-gccbugs at thorn dot ws 2012-08-05 3:29 ` [Bug target/54176] " pinskia at gcc dot gnu.org 2012-08-06 19:43 ` tommy-gccbugs at thorn dot ws 2014-03-02 22:03 ` lekernel at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).