Commit f0985900 by Jan Hubicka Committed by Jan Hubicka

* varasm.c (notice_global_symbol): Properly deal with weak symbols.

From-SVN: r71236
parent 94fd5176
Tue Sep 9 15:36:28 CEST 2003 Jan Hubicka <jh@suse.cz>
* varasm.c (notice_global_symbol): Properly deal with weak symbols.
2003-09-08 Kelley Cook <kelleycook@wideopenwest.com> 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
* Makefile.in: Revert yesterday's change. * Makefile.in: Revert yesterday's change.
......
...@@ -1048,11 +1048,11 @@ void ...@@ -1048,11 +1048,11 @@ void
notice_global_symbol (tree decl) notice_global_symbol (tree decl)
{ {
if ((!first_global_object_name || !weak_global_object_name) if ((!first_global_object_name || !weak_global_object_name)
&& TREE_PUBLIC (decl) && TREE_PUBLIC (decl) && !DECL_COMMON (decl)
&& (TREE_CODE (decl) == FUNCTION_DECL && (TREE_CODE (decl) == FUNCTION_DECL
|| ! (DECL_COMMON (decl) || (TREE_CODE (decl) == VAR_DECL
&& (DECL_INITIAL (decl) == 0 && (DECL_INITIAL (decl) != 0
|| DECL_INITIAL (decl) == error_mark_node)))) && DECL_INITIAL (decl) != error_mark_node))))
{ {
const char *p; const char *p;
char *name; char *name;
......
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