This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Nov 2011 09:52:37 +0000
- Subject: [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
- Auto-submitted: auto-generated
- References: <bug-51291-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org,
| |burnus at gcc dot gnu.org
Component|fortran |middle-end
Target Milestone|--- |4.7.0
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-24 09:52:37 UTC ---
The crash happens at config/i386/i386.c's ix86_init_tm_builtins:
decl = builtin_decl_explicit (BUILT_IN_TM_LOAD_1);
attrs_load = DECL_ATTRIBUTES (decl);
The problem is that builtin_decl_explicit returns NULL - or in other words:
builtin_info.decl[(size_t) BUILT_IN_TM_LOAD_1]
is NULL.
The problem is that gtm-builtins.def is included in builtins.def which is
included in c-common.c. However, builtins.def is not included in fortran/*.
Ideas?