Commit c8f59bc8 by Jan Hubicka Committed by Jan Hubicka

ipa.c (function_and_variable_visibility): Fix my accidentail commit and clear…

ipa.c (function_and_variable_visibility): Fix my accidentail commit and clear DECL_COMMON on localized declarations.


	* ipa.c (function_and_variable_visibility): Fix my accidentail commit and
	clear DECL_COMMON on localized declarations.

From-SVN: r154128
parent 0ccb5970
2009-11-12 Jan Hubicka <jh@suse.cz>
* ipa.c (function_and_variable_visibility): Fix my accidentail commit and
clear DECL_COMMON on localized declarations.
2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com> 2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
PR rtl-opt/38582 PR rtl-opt/38582
...@@ -318,8 +318,8 @@ function_and_variable_visibility (bool whole_program) ...@@ -318,8 +318,8 @@ function_and_variable_visibility (bool whole_program)
{ {
if (!vnode->finalized) if (!vnode->finalized)
continue; continue;
gcc_assert ((!DECL_WEAK (vnode->decl) && !DECL_COMMON (vnode->decl) && !DECL_COMDAT (vnode->decl)) gcc_assert ((!DECL_WEAK (vnode->decl) && !DECL_COMMON (vnode->decl))
|| TREE_PUBLIC (vnode->decl) || DECL_EXTERNAL (node->decl)); || TREE_PUBLIC (vnode->decl) || DECL_EXTERNAL (vnode->decl));
if (vnode->needed if (vnode->needed
&& (DECL_COMDAT (vnode->decl) || TREE_PUBLIC (vnode->decl)) && (DECL_COMDAT (vnode->decl) || TREE_PUBLIC (vnode->decl))
&& (!whole_program && (!whole_program
...@@ -337,6 +337,7 @@ function_and_variable_visibility (bool whole_program) ...@@ -337,6 +337,7 @@ function_and_variable_visibility (bool whole_program)
{ {
gcc_assert (whole_program || !TREE_PUBLIC (vnode->decl)); gcc_assert (whole_program || !TREE_PUBLIC (vnode->decl));
TREE_PUBLIC (vnode->decl) = 0; TREE_PUBLIC (vnode->decl) = 0;
DECL_COMMON (vnode->decl) = 0;
} }
gcc_assert (TREE_STATIC (vnode->decl)); gcc_assert (TREE_STATIC (vnode->decl));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment