From: Jakub Jelinek Date: Thu, 19 Feb 2015 11:56:00 +0000 (+0100) Subject: re PR lto/65012 (systemd fails to build at least on ppc64el, powerpc, arm-inux-gnueab... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=176ca71c8c4ebb554dddef6ea1a6a855b117d6e2;p=gcc.git re PR lto/65012 (systemd fails to build at least on ppc64el, powerpc, arm-inux-gnueabihf and aarch64 with -flto (ICE)) PR lto/65012 * varpool.c (varpool_node::get_constructor): Return early if this->lto_file_data is NULL. From-SVN: r220810 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8c57f97564d..a3045581944 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-02-19 Jakub Jelinek + + PR lto/65012 + * varpool.c (varpool_node::get_constructor): Return early + if this->lto_file_data is NULL. + 2015-02-19 Maxim Kuvyrkov * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG. diff --git a/gcc/varpool.c b/gcc/varpool.c index 31359857405..707f62f0d84 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -303,7 +303,8 @@ varpool_node::get_constructor (void) size_t len; if (DECL_INITIAL (decl) != error_mark_node - || !in_lto_p) + || !in_lto_p + || !lto_file_data) return DECL_INITIAL (decl); timevar_push (TV_IPA_LTO_CTORS_IN);