From: Stan Shebs Date: Tue, 10 Jul 2001 00:49:45 +0000 (+0000) Subject: darwin.c (darwin_encode_section_info): Don't mark any DECL_EXTERNAL node as defined. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70bdc2ff0aa08ce5166cd202074100eea97a653d;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd1ac54fd1d..ea2c7c6cba0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-09 Stan Shebs + + * config/darwin.c (darwin_encode_section_info): Don't mark any + DECL_EXTERNAL node as defined. + 2001-07-09 John David Anglin * pa.c (pa_init_machine_status, pa_mark_machine_status, diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index a3c382cee69..abfb5f763b2 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)))