1 2002-08-28 Jakub Jelinek <jakub@redhat.com>
3 * config/alpha/alpha.c (alpha_encode_section_info): Check static and
4 visibility before DECL_EXTERNAL.
6 --- gcc/config/alpha/alpha.c.jj 2002-08-28 11:20:29.000000000 +0200
7 +++ gcc/config/alpha/alpha.c 2002-08-28 21:50:55.000000000 +0200
8 @@ -1589,13 +1589,13 @@ alpha_encode_section_info (decl)
10 /* A variable is considered "local" if it is defined in this module. */
12 - if (DECL_EXTERNAL (decl))
13 + if (! TREE_PUBLIC (decl) || MODULE_LOCAL_P (decl))
15 + else if (DECL_EXTERNAL (decl))
17 /* Linkonce and weak data is never local. */
18 else if (DECL_ONE_ONLY (decl) || DECL_WEAK (decl))
20 - else if (! TREE_PUBLIC (decl) || MODULE_LOCAL_P (decl))
22 /* If PIC, then assume that any global name can be overridden by
23 symbols resolved from other modules. */