aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2014-04-10 20:57:48 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2014-04-10 20:57:48 +0200
commitfa5866c0e3a9989b74d0e24733d47cab8187103d (patch)
tree6599d476c476c949ab053c5050567b4c382a2c5d /gcc/ipa.c
parent8aa1cce64e8d4a443d0b4d01b09ef0015725c65d (diff)
downloadgcc-fa5866c0e3a9989b74d0e24733d47cab8187103d.zip
gcc-fa5866c0e3a9989b74d0e24733d47cab8187103d.tar.gz
gcc-fa5866c0e3a9989b74d0e24733d47cab8187103d.tar.bz2
re PR lto/60567 (lto1 ICE in add_symbol_to_partition, at lto/lto-partition.c:233 with -fno-use-linker-plugin)
PR lto/60567 * ipa.c (function_and_variable_visibility): Copy forced_by_abi flag from decl_node to node. * g++.dg/lto/pr60567_0.C: New test. From-SVN: r209280
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index c766876..26e9b03 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -1032,6 +1032,7 @@ function_and_variable_visibility (bool whole_program)
== DECL_COMDAT_GROUP (decl_node->decl));
gcc_checking_assert (node->same_comdat_group);
}
+ node->forced_by_abi = decl_node->forced_by_abi;
if (DECL_EXTERNAL (decl_node->decl))
DECL_EXTERNAL (node->decl) = 1;
}