]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
collect2.c (scan_prog_file): Completely cover uses of variable `exports' with macro...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 22 Feb 1998 14:06:35 +0000 (14:06 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 22 Feb 1998 14:06:35 +0000 (07:06 -0700)
        * collect2.c (scan_prog_file): Completely cover uses of variable
        `exports' with macro COLLECT_EXPORT_LIST.

From-SVN: r18164

gcc/ChangeLog
gcc/collect2.c

index a58d83ab0bf7b0b5426f12e96213e04db92d576f..56160aaee0758717b756e4e28c3f0d845437f0c8 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 1998-02-20  Jason Merrill  <jason@yorick.cygnus.com>
 
        * collect2.c (main): Still handle !do_collecting for non-AIX targets.
index 6cc04d4bc3ce594875924f8f371b6c95d3ee58cc..a4e8696f0e0bce0a33aee79cb99d48e50ae69b63 100644 (file)
@@ -2830,9 +2830,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.  */
@@ -2845,9 +2845,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.  */