tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for variables that are...
authorMark Mitchell <mark@codesourcery.com>
Tue, 20 Mar 2001 19:43:41 +0000 (19:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 20 Mar 2001 19:43:41 +0000 (19:43 +0000)
* tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for
variables that are TREE_PUBLIC, even if not TREE_STATIC.

From-SVN: r40667

gcc/ChangeLog
gcc/tree.c

index b44835975d2f039e059af79f5793dd97a6637515..78ef900c80b8fc8ed5a1225f62fbd0b09123018e 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for
+       variables that are TREE_PUBLIC, even if not TREE_STATIC.
+
 2001-03-20  DJ Delorie  <dj@redhat.com>
 
        * Makefile.in (install-libgcc): Pass complete list of variables.
index 573d7a2aa138460fa8f6db02e5419cd22f055f13..d05f3cac1da0c7892b0927d039fee8144e4e8627 100644 (file)
@@ -204,7 +204,9 @@ set_decl_assembler_name (decl)
      DECL_ASSEMBLER_NAME.  */
   if (TREE_CODE (decl) == FUNCTION_DECL
       || (TREE_CODE (decl) == VAR_DECL 
-         && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))))
+         && (TREE_STATIC (decl) 
+             || DECL_EXTERNAL (decl) 
+             || TREE_PUBLIC (decl))))
     /* By default, assume the name to use in assembly code is the
        same as that used in the source language.  (That's correct
        for C, and GCC used to set DECL_ASSEMBLER_NAME to the same