: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: tommy-gccbugs at thorn dot ws
Target Milestone: ---
Created attachment 48478
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48478&action=edit
Reproduces the internal bug
GCC 10 just landed in Ubuntu Focal, iden
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: UNCONFI
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176
--- Comment #1 from Tommy Thorn 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176
--- Comment #2 from Tommy Thorn 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; }
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176
--- Comment #4 from Tommy Thorn 2012-08-06
19:42:45 UTC ---
FWIW, it works in 4.5.3. I can narrow down the range if that's helpful.