From 70bdc2ff0aa08ce5166cd202074100eea97a653d Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 10 Jul 2001 00:49:45 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin.c | 1 + 2 files changed, 6 insertions(+) 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))) -- 2.30.2