diff options
author | Stan Shebs <shebs@apple.com> | 2001-07-10 00:49:45 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2001-07-10 00:49:45 +0000 |
commit | 70bdc2ff0aa08ce5166cd202074100eea97a653d (patch) | |
tree | efc10a425a61bb1222d4c147cfac0992ccccc0c0 /gcc | |
parent | ae818d3be84a3154287758d8be72c82b921d1429 (diff) | |
download | gcc-70bdc2ff0aa08ce5166cd202074100eea97a653d.zip gcc-70bdc2ff0aa08ce5166cd202074100eea97a653d.tar.gz gcc-70bdc2ff0aa08ce5166cd202074100eea97a653d.tar.bz2 |
darwin.c (darwin_encode_section_info): Don't mark any DECL_EXTERNAL node as defined.
* config/darwin.c (darwin_encode_section_info): Don't mark any
DECL_EXTERNAL node as defined.
From-SVN: r43885
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd1ac54..ea2c7c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-09 Stan Shebs <shebs@apple.com> + + * config/darwin.c (darwin_encode_section_info): Don't mark any + DECL_EXTERNAL node as defined. + 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca> * pa.c (pa_init_machine_status, pa_mark_machine_status, diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index a3c382c..abfb5f7 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -997,6 +997,7 @@ darwin_encode_section_info (decl) if ((TREE_CODE (decl) == FUNCTION_DECL || TREE_CODE (decl) == VAR_DECL) + && !DECL_EXTERNAL (decl) && ((TREE_STATIC (decl) && (!DECL_COMMON (decl) || !TREE_PUBLIC (decl))) || DECL_INITIAL (decl))) |