This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away
- From: "jiez at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Nov 2010 10:56:54 +0000
- Subject: [Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away
- Auto-submitted: auto-generated
- References: <bug-46674-4@http.gcc.gnu.org/bugzilla/>
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)
{