]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
collect2.c (main): Still handle !do_collecting for non-AIX targets.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 20 Feb 1998 20:42:37 +0000 (20:42 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 20 Feb 1998 20:42:37 +0000 (13:42 -0700)
        * collect2.c (main): Still handle !do_collecting for non-AIX targets.
Bring over from mainline sources.

From-SVN: r18153

gcc/ChangeLog
gcc/collect2.c

index 47104fa2b6300a911b7d7a9b8307b3d6309e0053..a58d83ab0bf7b0b5426f12e96213e04db92d576f 100644 (file)
@@ -1,3 +1,7 @@
+1998-02-20  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * collect2.c (main): Still handle !do_collecting for non-AIX targets.
+
 Thu Feb 19 22:36:53 1998  Andrey Slepuhin  <pooh@msu.net>
                           David Edelsohn  <edelsohn@mhpcc.edu>
 
index 7fd5350d4464c60519bf91b94de31bbac0cc1025..6cc04d4bc3ce594875924f8f371b6c95d3ee58cc 100644 (file)
@@ -1511,20 +1511,21 @@ main (argc, argv)
   /* On AIX we do this later.  */
 #ifndef COLLECT_EXPORT_LIST
   do_tlink (ld1_argv, object_lst); 
-#else
+#endif
 
   /* If -r or they will be run via some other method, do not build the
      constructor or destructor list, just return now.  */
   if (rflag || ! do_collecting)
     {
+#ifdef COLLECT_EXPORT_LIST
       /* But make sure we delete the export file we may have created.  */
       if (export_file != 0 && export_file[0])
        maybe_unlink (export_file);
       if (import_file != 0 && import_file[0])
        maybe_unlink (import_file);
+#endif
       return 0;
     }
-#endif
 
   /* Examine the namelist with nm and search it for static constructors
      and destructors to call.