diff options
author | Jason Merrill <merrill@gnu.org> | 1994-09-28 00:11:31 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1994-09-28 00:11:31 +0000 |
commit | 2d5e74ca04305c052e26aeec8fa23d81f20bb60e (patch) | |
tree | 4dce93a3a09e744251e9e7672217282ab90f0607 /gcc/collect2.c | |
parent | 0102f053893972261409e37c58678fbd2e2b5fe2 (diff) | |
download | gcc-2d5e74ca04305c052e26aeec8fa23d81f20bb60e.tar.gz |
(main): Ignore options in COLLECT_SUPPRESS_OPTIONS
for the first link.
From-SVN: r8153
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 7decccd6170..8b98be6168f 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1056,6 +1056,14 @@ main (argc, argv) *ld1++ = *ld2++ = arg; if (arg[0] == '-') + { +#ifdef COLLECT_SUPPRESS_OPTIONS + if (index (COLLECT_SUPPRESS_OPTIONS, arg[1])) + { + ld1--; + continue; + } +#endif switch (arg[1]) { case 'd': @@ -1093,7 +1101,7 @@ main (argc, argv) vflag = 1; break; } - + } else if (first_file && (p = rindex (arg, '.')) != (char *)0 && strcmp (p, ".o") == 0) |