This is the mail archive of the gcc-patches@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]

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


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