From: Martin Liska Date: Wed, 18 May 2016 11:48:50 +0000 (+0200) Subject: Set DECL_PT_UID for merged variables in IPA ICF (PR70856). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf087b415c8e72e07a5024ff24e29e859b2747e5;p=gcc.git Set DECL_PT_UID for merged variables in IPA ICF (PR70856). PR fortran/70856 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for merged variables. From-SVN: r236375 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0cc14850da..ff468c152ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-18 Martin Liska + + PR fortran/70856 + * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for + merged variables. + 2016-05-18 Richard Biener * lto-streamer.h (LTO_major_version): Bump to 6. diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index dda5cacc993..3c04b5abc32 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -2258,6 +2258,8 @@ sem_variable::merge (sem_item *alias_item) varpool_node::create_alias (alias_var->decl, decl); alias->resolve_alias (original); + if (DECL_PT_UID_SET_P (original->decl)) + SET_DECL_PT_UID (alias->decl, DECL_PT_UID (original->decl)); if (dump_file) fprintf (dump_file, "Unified; Variable alias has been created.\n\n");