diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-03-11 15:47:26 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-03-11 15:47:26 +0100 |
commit | 4074f163fc39eedabb09f1ddcbd4c78bf55cb19b (patch) | |
tree | 8332b75e8eaf8ba251b4e7c6633d5cde4cab2653 /gcc/ipa.c | |
parent | 30f7cdcde6e9933e55e6bae37b5f5e785b28fa90 (diff) | |
download | gcc-4074f163fc39eedabb09f1ddcbd4c78bf55cb19b.zip gcc-4074f163fc39eedabb09f1ddcbd4c78bf55cb19b.tar.gz gcc-4074f163fc39eedabb09f1ddcbd4c78bf55cb19b.tar.bz2 |
re PR middle-end/48044 (ICE in function_and_variable_visibility, at ipa.c:875)
PR middle-end/48044
* ipa.c (cgraph_remove_unreachable_nodes): Enqueue
all vnode->force_output nodes as needed.
* gcc.dg/torture/pr48044.c: New test.
From-SVN: r170873
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* Basic IPA optimizations and utilities. - Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010 + Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GCC. @@ -259,7 +259,7 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file) { vnode->next_needed = NULL; vnode->prev_needed = NULL; - if (vnode->analyzed + if ((vnode->analyzed || vnode->force_output) && !varpool_can_remove_if_no_refs (vnode)) { vnode->needed = false; |