collect2.c (scan_prog_file): Completely cover uses of variable `exports' with macro...
authorDavid Edelsohn <dje@gcc.gnu.org>
Sun, 22 Feb 1998 09:48:22 +0000 (04:48 -0500)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 22 Feb 1998 09:48:22 +0000 (04:48 -0500)
        * collect2.c (scan_prog_file): Completely cover uses of variable
        `exports' with macro COLLECT_EXPORT_LIST.

From-SVN: r18163

gcc/ChangeLog
gcc/collect2.c

index a021fe883d3d0df63f2327180be59a9f73a686f0..c97a71bdad0a1883370ca02cdcd1bf711584aa05 100644 (file)
@@ -1,4 +1,9 @@
-Sat Feb 21 20:36:23 PST 1998 Jeff Law  (law@cygnus.com)
+Sun Feb 22 09:45:39 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * collect2.c (scan_prog_file): Completely cover uses of variable
+       `exports' with macro COLLECT_EXPORT_LIST.
+
+Sat Feb 21 20:36:23 1998  Jeff Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
 
index 815d76a8ce593e4e3d416974d402404dc20f2031..e9a0a3f65f584737c3ae0ce04a8b828f80a23f2b 100644 (file)
@@ -2855,9 +2855,9 @@ scan_prog_file (prog_name, which_pass)
                        {
                        case 1:
                          if (! is_shared) add_to_list (&constructors, name);
+#ifdef COLLECT_EXPORT_LIST
                          if (which_pass == PASS_OBJ)
                            add_to_list (&exports, name);
-#ifdef COLLECT_EXPORT_LIST
                          /* If this symbol was undefined and we are building
                             an import list, we should add a symbol to this
                             list.  */
@@ -2870,9 +2870,9 @@ scan_prog_file (prog_name, which_pass)
 
                        case 2:
                          if (! is_shared) add_to_list (&destructors, name);
+#ifdef COLLECT_EXPORT_LIST
                          if (which_pass == PASS_OBJ)
                            add_to_list (&exports, name);
-#ifdef COLLECT_EXPORT_LIST
                          /* If this symbol was undefined and we are building
                             an import list, we should add a symbol to this
                             list.  */