]> gcc.gnu.org Git - gcc.git/commitdiff
(main): Ignore options in COLLECT_SUPPRESS_OPTIONS
authorJason Merrill <merrill@gnu.org>
Wed, 28 Sep 1994 00:11:31 +0000 (00:11 +0000)
committerJason Merrill <merrill@gnu.org>
Wed, 28 Sep 1994 00:11:31 +0000 (00:11 +0000)
        for the first link.

From-SVN: r8153

gcc/collect2.c

index 7decccd6170ce638ab1b04d71a862dd512d53783..8b98be6168fec182b39e11041e05cb96faa46586 100644 (file)
@@ -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)
This page took 0.069534 seconds and 5 git commands to generate.