(main): Check new define DEFAULT_A_OUT_NAME.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Mar 1996 23:39:47 +0000 (18:39 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Mar 1996 23:39:47 +0000 (18:39 -0500)
From-SVN: r11426

gcc/collect2.c

index b0018a29b6c2fe747a364e14e9512b19cf06ad0d..e351dbc453acedbe2103e49d11ac736f5e7d9aea 100644 (file)
@@ -2,7 +2,7 @@
    that can be traversed by C++ initialization and finalization
    routines.
 
-   Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
    Contributed by Chris Smith (csmith@convex.com).
    Heavily modified by Michael Meissner (meissner@cygnus.com),
    Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com).
@@ -955,7 +955,11 @@ main (argc, argv)
   vflag = 1;
 #endif
 
+#ifndef DEFAULT_A_OUT_NAME
   output_file = "a.out";
+#else
+  output_file = DEFAULT_A_OUT_NAME;
+#endif
 
   obstack_begin (&temporary_obstack, 0);
   obstack_begin (&permanent_obstack, 0);