This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix accidental commit
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Nov 2009 17:50:04 +0100
- Subject: Fix accidental commit
Hi,
while comitting previous patch I managed to accidentally commit extra sanity
check in function_and_variable_visibility sitting in my local tree verifying
that visibility flags are sane. The check contains typo that makes it to ICE on
empty cgraphs. I am testing (x86_64-linux) the following fix and will commit it if passes.
My apologizes for the problem.
* ipa.c (function_and_variable_visibility): Fix sanity check accidentally comitted
with previous patch.
Index: ipa.c
===================================================================
--- ipa.c (revision 154121)
+++ ipa.c (working copy)
@@ -319,7 +337,7 @@ function_and_variable_visibility (bool w
if (!vnode->finalized)
continue;
gcc_assert ((!DECL_WEAK (vnode->decl) && !DECL_COMMON (vnode->decl) && !DECL_COMDAT (vnode->decl))
- || TREE_PUBLIC (vnode->decl) || DECL_EXTERNAL (node->decl));
+ || TREE_PUBLIC (vnode->decl) || DECL_EXTERNAL (vnode->decl));
if (vnode->needed
&& (DECL_COMDAT (vnode->decl) || TREE_PUBLIC (vnode->decl))
&& (!whole_program