OSDN Git Service

(main): Recover correctly from invalid -Wid-clash option.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Oct 1992 08:03:02 +0000 (08:03 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Oct 1992 08:03:02 +0000 (08:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2349 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/toplev.c

index 68279c7..9610b88 100644 (file)
@@ -3021,10 +3021,14 @@ main (argc, argv, envp)
                      if (*endp >= '0' && *endp <= '9')
                        endp++;
                      else
-                       error ("Invalid option `%s'", argv[i]);
+                       {
+                         error ("Invalid option `%s'", argv[i]);
+                         goto id_clash_lose;
+                       }
                    }
                  warn_id_clash = 1;
                  id_clash_len = atoi (str + 10);
+               id_clash_lose: ;
                }
              else
                error ("Invalid option `%s'", argv[i]);