]>
Commit | Line | Data |
---|---|---|
5384b728 | 1 | 2002-08-28 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * config/alpha/alpha.c (alpha_encode_section_info): Check static and | |
4 | visibility before DECL_EXTERNAL. | |
5 | ||
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) | |
9 | ||
10 | /* A variable is considered "local" if it is defined in this module. */ | |
11 | ||
12 | - if (DECL_EXTERNAL (decl)) | |
13 | + if (! TREE_PUBLIC (decl) || MODULE_LOCAL_P (decl)) | |
14 | + is_local = true; | |
15 | + else if (DECL_EXTERNAL (decl)) | |
16 | is_local = false; | |
17 | /* Linkonce and weak data is never local. */ | |
18 | else if (DECL_ONE_ONLY (decl) || DECL_WEAK (decl)) | |
19 | is_local = false; | |
20 | - else if (! TREE_PUBLIC (decl) || MODULE_LOCAL_P (decl)) | |
21 | - is_local = true; | |
22 | /* If PIC, then assume that any global name can be overridden by | |
23 | symbols resolved from other modules. */ | |
24 | else if (flag_pic) |