[Bug middle-end/48954] New: [4.7 Regression] ICE: SIGSEGV in bitmap_count_bits (bitmap.c:719) with -O2 -flto -fno-early-inlining -fkeep-inline-functions
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Tue May 10 18:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48954
Summary: [4.7 Regression] ICE: SIGSEGV in bitmap_count_bits
(bitmap.c:719) with -O2 -flto -fno-early-inlining
-fkeep-inline-functions
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 24220
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24220
reduced testcase
Compiler output (run under valgrind):
$ g++ -O2 -flto -fno-early-inlining -fkeep-inline-functions testcase.C
==3584==
==3584== Invalid read of size 8
==3584== at 0x507DE6: bitmap_count_bits (bitmap.c:719)
==3584== by 0x7491C2: output_cgraph (lto-cgraph.c:1591)
==3584== by 0x759C91: lto_output (lto-streamer-out.c:2222)
==3584== by 0x7940E2: ipa_write_optimization_summaries_1 (passes.c:1760)
==3584== by 0x794C2F: ipa_write_optimization_summaries (passes.c:1806)
==3584== by 0x4F59DA: lto_main (lto.c:1996)
==3584== by 0x880F69: toplev_main (toplev.c:570)
==3584== by 0x644AB6C: (below main) (in /lib64/libc-2.11.3.so)
==3584== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3584==
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r173586 - crash
4.6 r173059 - OK (yes,rtl,df checking)
More information about the Gcc-bugs
mailing list