This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48794] New: [4.7 Regression] ICE: SIGSEGV in remap_eh_region_nr (tree-inline.c:1194) with -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Apr 2011 18:35:29 +0000
- Subject: [Bug middle-end/48794] New: [4.7 Regression] ICE: SIGSEGV in remap_eh_region_nr (tree-inline.c:1194) with -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48794
Summary: [4.7 Regression] ICE: SIGSEGV in remap_eh_region_nr
(tree-inline.c:1194) with -Os -fopenmp -fexceptions
-fno-tree-ccp -fno-tree-copy-prop
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
CC: jakub@gcc.gnu.org
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 24119
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24119
auto-reduced testcase (from libgomp.fortran/allocatable3.f90)
This is very similiar ro PR48611.
Compiler output:
$ gcc -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop testcase.f90
==32088== Invalid read of size 4
==32088== at 0xBCFC1F: remap_eh_region_nr.isra.74 (tree-inline.c:1194)
==32088== by 0xBD3A89: remap_gimple_stmt (tree-inline.c:1444)
==32088== by 0xBD4477: copy_bb (tree-inline.c:1540)
==32088== by 0xBD5654: copy_body (tree-inline.c:2244)
==32088== by 0xBD7D8E: expand_call_inline (tree-inline.c:3906)
==32088== by 0xBDA2BF: optimize_inline_calls (tree-inline.c:4018)
==32088== by 0xBB3B06: inline_transform (ipa-inline-transform.c:313)
==32088== by 0x872E30: execute_all_ipa_transforms (passes.c:1455)
==32088== by 0x9BBCA1: tree_rest_of_compilation (tree-optimize.c:416)
==32088== by 0xB9F1B2: cgraph_expand_function (cgraphunit.c:1578)
==32088== by 0xBA16CB: cgraph_optimize (cgraphunit.c:1637)
==32088== by 0xBA1C59: cgraph_finalize_compilation_unit (cgraphunit.c:1098)
==32088== by 0x82A75C: write_global_declarations (langhooks.c:303)
==32088== by 0x95FCC7: toplev_main (toplev.c:591)
==32088== by 0x644AB6C: (below main) (in /lib64/libc-2.11.3.so)
==32088== Address 0x18 is not stack'd, malloc'd or (recently) free'd
==32088==
testcase.f90: In function 'main':
testcase.f90:8:0: 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:
r173040 - crash
4.6 r172337 - OK