From: Jason Merrill Date: Wed, 28 Sep 1994 00:11:31 +0000 (+0000) Subject: (main): Ignore options in COLLECT_SUPPRESS_OPTIONS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d5e74ca04305c052e26aeec8fa23d81f20bb60e;p=gcc.git (main): Ignore options in COLLECT_SUPPRESS_OPTIONS for the first link. From-SVN: r8153 --- 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)