* collect2.c (COLLECT_PARSE_FLAG): Provide default.
(main): Use it.
* doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
From-SVN: r72599
+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.
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;
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;
}
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