]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
collect2.c (COLLECT_PARSE_FLAG): Provide default.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Fri, 17 Oct 2003 11:27:13 +0000 (11:27 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 17 Oct 2003 11:27:13 +0000 (11:27 +0000)
* collect2.c (COLLECT_PARSE_FLAG): Provide default.
(main): Use it.
* doc/tm.texi (COLLECT_PARSE_FLAG): Document it.

From-SVN: r72599

gcc/ChangeLog
gcc/collect2.c
gcc/doc/tm.texi

index a096fda0333831c1338c3d65724f452e24272357..0154838f7d7e5b8dd879a89c653435d49f057989 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * collect2.c (COLLECT_PARSE_FLAG): Provide default.
+       (main): Use it.
+       * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
+
 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm-modes.def (CC_Nmode): New condition code mode.
index 356eda96f6b56d16ad5e4cd3d2e7e127212b0373..2d49cce3ffeedce3f01a57a82e73cbcea5a92072 100644 (file)
@@ -150,6 +150,10 @@ int do_collecting = 1;
 int do_collecting = 0;
 #endif
 
+#ifndef COLLECT_PARSE_FLAG
+#define COLLECT_PARSE_FLAG(FLAG)
+#endif
+
 /* Nonzero if we should suppress the automatic demangling of identifiers
    in linker error messages.  Set from COLLECT_NO_DEMANGLE.  */
 int no_demangle;
@@ -853,8 +857,11 @@ main (int argc, char **argv)
     int i;
 
     for (i = 1; argv[i] != NULL; i ++)
-      if (! strcmp (argv[i], "-debug"))
-       debug = 1;
+      {
+       if (! strcmp (argv[i], "-debug"))
+         debug = 1;
+       COLLECT_PARSE_FLAG (argv[i]);
+      }
     vflag = debug;
   }
 
index 2a98681987005bb057b9ae2b88b9e443883b90cc..8a0ff9bbe63fbda90ca0064f07e54d82f1de18dd 100644 (file)
@@ -7100,6 +7100,12 @@ This macro is effective only in a native compiler; @command{collect2} as
 part of a cross compiler always uses @command{nm} for the target machine.
 @end defmac
 
+@defmac COLLECT_PARSE_FLAG (@var{flag})
+Define this macro to be C code that examines @command{collect2} command
+line option @var{flag} and performs special actions if
+@command{collect2} needs to behave differently depending on @var{flag}.
+@end defmac
+
 @defmac REAL_NM_FILE_NAME
 Define this macro as a C string constant containing the file name to use
 to execute @command{nm}.  The default is to search the path normally for