From cf087b415c8e72e07a5024ff24e29e859b2747e5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 18 May 2016 13:48:50 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-icf.c | 2 ++ 2 files changed, 8 insertions(+) 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"); -- 2.30.2