[Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away

jiez at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 29 11:05:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46674

--- Comment #3 from Jie Zhang <jiez at gcc dot gnu.org> 2010-11-29 10:56:37 UTC ---
If I revert this change, this bug will disappear.

@@ -416,7 +415,7 @@ cgraph_remove_unreachable_nodes (bool be
           found = true;

       /* If so, we need to keep node in the callgraph.  */
-      if (found || node->needed)
+      if (found)
         {
           if (node->analyzed)
         {



More information about the Gcc-bugs mailing list