This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)
         {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]