Message ID | alpine.LNX.2.00.1207041437150.17233@jbgna.fhfr.qr |
---|---|
State | New |
Headers | show |
Index: gcc/gimple-fold.c =================================================================== --- gcc/gimple-fold.c (revision 189251) +++ gcc/gimple-fold.c (working copy) @@ -2713,6 +2713,10 @@ get_base_constructor (tree base, HOST_WI if (!DECL_INITIAL (base) && (TREE_STATIC (base) || DECL_EXTERNAL (base))) return error_mark_node; + /* Do not return an error_mark_node DECL_INITIAL. LTO uses this + as special marker (_not_ zero ...) for its own purposes. */ + if (DECL_INITIAL (base) == error_mark_node) + return NULL_TREE; return DECL_INITIAL (base); case ARRAY_REF: