darwin.c (darwin_encode_section_info): Don't mark any DECL_EXTERNAL node as defined.
authorStan Shebs <shebs@apple.com>
Tue, 10 Jul 2001 00:49:45 +0000 (00:49 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Tue, 10 Jul 2001 00:49:45 +0000 (00:49 +0000)
        * config/darwin.c (darwin_encode_section_info): Don't mark any
        DECL_EXTERNAL node as defined.

From-SVN: r43885

gcc/ChangeLog
gcc/config/darwin.c

index cd1ac54fd1dc74c5c22be2d233322e4c44fb2ccc..ea2c7c6cba0f908facaea42618bffb6252f7dad7 100644 (file)
@@ -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,
index a3c382cee69439f2cb363cf7148ffeab23230df0..abfb5f763b22b7188d85506087c8e4f6a76d1bfc 100644 (file)
@@ -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)))