From 2d5e74ca04305c052e26aeec8fa23d81f20bb60e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 28 Sep 1994 00:11:31 +0000 Subject: [PATCH] (main): Ignore options in COLLECT_SUPPRESS_OPTIONS for the first link. From-SVN: r8153 --- gcc/collect2.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/collect2.c b/gcc/collect2.c index 7decccd6170c..8b98be6168fe 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) -- 2.43.5