Bug 57597 - ICE: in get_section, at varasm.c:312: Segmentation fault with -fmerge-all-constants
Summary: ICE: in get_section, at varasm.c:312: Segmentation fault with -fmerge-all-con...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: 5.4
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
: 65507 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-12 14:02 UTC by Georg-Johann Lay
Modified: 2024-03-15 22:16 UTC (History)
1 user (show)

See Also:
Host: i386-mingw32
Target: avr
Build: i686-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2013-06-12 00:00:00


Attachments
foo.c: C test case (129 bytes, text/plain)
2013-06-12 14:02 UTC, Georg-Johann Lay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg-Johann Lay 2013-06-12 14:02:08 UTC
Created attachment 30299 [details]
foo.c: C test case

Compile the test case with

avr-gcc -mmcu=atmega168 -S foo.c -fmerge-all-constants -O
foo.c:12:1: internal compiler error: in get_section, at varasm.c:312
 }
 ^
foo.c:12:1: internal compiler error: Segmentation fault

This might be related to PR50739

== configure ==

Configured with:
../../gcc.gnu.org/trunk/configure --target=avr --prefix=/local/gnu/install/gcc-4.8-mingw32 --host=i386-mingw32 --build=i686-linux-gnu --enable-languages=c,c++ --disable-nls --disable-shared --with-dwarf2
Thread model: single
gcc version 4.8.0 20130306 (experimental) (GCC)
Comment 1 Georg-Johann Lay 2015-03-29 22:13:23 UTC
*** Bug 65507 has been marked as a duplicate of this bug. ***
Comment 2 Andrew Pinski 2024-03-15 22:16:30 UTC
Looks to be fixed.