This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/53433] [4.8 Regression] ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jul 2012 11:53:56 +0000
- Subject: [Bug middle-end/53433] [4.8 Regression] ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap
- Auto-submitted: auto-generated
- References: <bug-53433-4@http.gcc.gnu.org/bugzilla/>
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)