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/53433] [4.8 Regression] ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53433

--- Comment #27 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-07-04 11:53:56 UTC ---
(In reply to comment #25)
> So, does
> 
> Index: gimple-fold.c
> ===================================================================
> --- gimple-fold.c       (revision 189251)
> +++ gimple-fold.c       (working copy)
> @@ -2713,6 +2713,8 @@ get_base_constructor (tree base, HOST_WI
>        if (!DECL_INITIAL (base)
>           && (TREE_STATIC (base) || DECL_EXTERNAL (base)))
>          return error_mark_node;
> +      if (DECL_INITIAL (base) == error_mark_node)
> +       return NULL_TREE;
>        return DECL_INITIAL (base);
> 
>      case ARRAY_REF:
> 
> fix it?

Yes! 
At least gcc builds now without errors.
(I didn't run the test-suite yet)


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