This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]