X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Fipa.c;h=49554083c02097e9ae911e02367a72734ce149e2;hb=4074f163fc39eedabb09f1ddcbd4c78bf55cb19b;hp=0320ded7a879b1a4842efc869a828424a97d0d66;hpb=30f7cdcde6e9933e55e6bae37b5f5e785b28fa90;p=gcc.git diff --git a/gcc/ipa.c b/gcc/ipa.c index 0320ded7a87..49554083c02 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -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;