aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-09-17 17:46:06 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-09-17 15:46:06 +0000
commit5b79657a115e3b62fc860ad88238e9ab0b0f6395 (patch)
tree114983054e860912f00de7bb086f99457a71972c /gcc/ipa.c
parent27442c2405bc264c435b485db9a13f6061535aa7 (diff)
downloadgcc-5b79657a115e3b62fc860ad88238e9ab0b0f6395.zip
gcc-5b79657a115e3b62fc860ad88238e9ab0b0f6395.tar.gz
gcc-5b79657a115e3b62fc860ad88238e9ab0b0f6395.tar.bz2
re PR ipa/58329 (ld: Invalid symbol type for plabel (.libs/libstdc++.lax/libc++11convenience.a/system_error.o, std::error_category::default_error_condition(int) const [clone .localalias.9]).)
PR middle-end/58329 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias to return NULL. * ipa.c (function_and_variable_visibility): Likewise. * ipa-profile.c (ipa_profile): Likewise. From-SVN: r202657
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 91d63eb..67b3bc0 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -998,7 +998,7 @@ function_and_variable_visibility (bool whole_program)
{
struct cgraph_node *alias = cgraph (symtab_nonoverwritable_alias ((symtab_node) node));
- if (alias != node)
+ if (alias && alias != node)
{
while (node->callers)
{