summaryrefslogtreecommitdiffstats
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-17 11:27:13 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-17 11:27:13 +0000
commitff2185fbe6ac8c9927c341918a764e79f76f76d2 (patch)
treee747013a6496f2ea2a886ec5e9669a5f81b82194 /gcc/collect2.c
parent61a0eea4ad87a5407539ecc3ddc833784e065b70 (diff)
downloadppe42-gcc-ff2185fbe6ac8c9927c341918a764e79f76f76d2.tar.gz
ppe42-gcc-ff2185fbe6ac8c9927c341918a764e79f76f76d2.zip
* collect2.c (COLLECT_PARSE_FLAG): Provide default.
(main): Use it. * doc/tm.texi (COLLECT_PARSE_FLAG): Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 356eda96f6b..2d49cce3ffe 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;
}
OpenPOWER on IntegriCloud