Commit 5f31e9bc by Rainer Orth Committed by Rainer Orth

collect2.c (COLLECT_PARSE_FLAG): Provide default.

	* collect2.c (COLLECT_PARSE_FLAG): Provide default.
	(main): Use it.
	* doc/tm.texi (COLLECT_PARSE_FLAG): Document it.

From-SVN: r72599
parent 05dcec66
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.
......
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment