]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.h (MODULE_LOCAL_P): Kill.
authorRichard Henderson <rth@redhat.com>
Wed, 11 Dec 2002 18:28:26 +0000 (10:28 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 11 Dec 2002 18:28:26 +0000 (10:28 -0800)
        * tree.h (MODULE_LOCAL_P): Kill.
        * varasm.c (default_binds_local_p_1): Use decl_visibility instead.

From-SVN: r60040

gcc/ChangeLog
gcc/tree.h
gcc/varasm.c

index caf1f4bce781e6ce4170c43dc08c3c358cdad9a7..9a8c41acd6599121b0a8a7d364742fc63d566f68 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-11  Richard Henderson  <rth@redhat.com>
+
+       * tree.h (MODULE_LOCAL_P): Kill.
+       * varasm.c (default_binds_local_p_1): Use decl_visibility instead.
+
 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (two define_peephole2): New.
index a675851003bf1aee8647d88c9fcbf3d46a5004f8..1dda21c81d775774d6130dca8543b97b01c8bacf 100644 (file)
@@ -2402,11 +2402,6 @@ extern tree merge_attributes             PARAMS ((tree, tree));
 extern tree merge_dllimport_decl_attributes PARAMS ((tree, tree));
 #endif
 
-/* Return true if DECL will be always resolved to a symbol defined in the
-   same module (shared library or program).  */
-#define MODULE_LOCAL_P(DECL) \
-  (lookup_attribute ("visibility", DECL_ATTRIBUTES (DECL)) != NULL)
-
 /* Return a version of the TYPE, qualified as indicated by the
    TYPE_QUALS, if one exists.  If no qualified version exists yet,
    return NULL_TREE.  */
index f8b33d080a62dceb8308bbb0c5820efda43c76b1..8b321af8296cdcd4fdea19f9272e0c7ee5841826 100644 (file)
@@ -5417,7 +5417,7 @@ default_binds_local_p_1 (exp, shlib)
   else if (! TREE_PUBLIC (exp))
     local_p = true;
   /* A variable is local if the user tells us so.  */
-  else if (MODULE_LOCAL_P (exp))
+  else if (decl_visibility (exp) != VISIBILITY_DEFAULT)
     local_p = true;
   /* Otherwise, variables defined outside this object may not be local.  */
   else if (DECL_EXTERNAL (exp))