diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2003-10-17 11:27:13 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2003-10-17 11:27:13 +0000 |
commit | 5f31e9bc315703be11e7c2852efe601edecea697 (patch) | |
tree | e747013a6496f2ea2a886ec5e9669a5f81b82194 | |
parent | 05dcec66a3d1d360d9acc8b0ace6ee3654aa2a6f (diff) | |
download | gcc-5f31e9bc315703be11e7c2852efe601edecea697.zip gcc-5f31e9bc315703be11e7c2852efe601edecea697.tar.gz gcc-5f31e9bc315703be11e7c2852efe601edecea697.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/collect2.c | 11 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 6 |
3 files changed, 21 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a096fda..0154838 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/collect2.c b/gcc/collect2.c index 356eda9..2d49cce 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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; } diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 2a98681..8a0ff9b 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -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 |