diff options
author | Phil Edwards <pme@gcc.gnu.org> | 2001-01-16 16:09:07 +0000 |
---|---|---|
committer | Phil Edwards <pme@gcc.gnu.org> | 2001-01-16 16:09:07 +0000 |
commit | 76e5b312153d0b44a231a7f74b26757782562a01 (patch) | |
tree | 8039c383bbb6ee3a89519e86e16b2e96fc8fd7c5 /gcc/gcc.c | |
parent | b62d22a25cfcfec93cec3ed0ed9f837b7fab3d7f (diff) | |
download | gcc-76e5b312153d0b44a231a7f74b26757782562a01.zip gcc-76e5b312153d0b44a231a7f74b26757782562a01.tar.gz gcc-76e5b312153d0b44a231a7f74b26757782562a01.tar.bz2 |
gcc.c: Revert previous -fsyntax-only-related change; move to cp/g++spec.c.
2001-01-16 Phil Edwards <pme@sources.redhat.com>
* gcc.c: Revert previous -fsyntax-only-related change; move
to cp/g++spec.c.
From-SVN: r39068
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -96,9 +96,6 @@ static char dir_separator_str[] = { DIR_SEPARATOR, 0 }; #define MIN_FATAL_STATUS 1 -/* If nonzero, -fsyntax-only was passed. */ -static int flag_syntax_only; - /* Flag saying to pass the greatest exit code returned by a sub-process to the calling program. */ static int pass_exit_codes; @@ -3158,11 +3155,6 @@ process_command (argc, argv) printf ("%s\n", spec_machine); exit (0); } - else if (strcmp (argv[i], "-fsyntax-only") == 0) - { - /* remember this so we don't complain about libraries */ - flag_syntax_only = 1; - } else if (strcmp (argv[i], "-fhelp") == 0) { /* translate_options () has turned --help into -fhelp. */ @@ -3789,7 +3781,6 @@ process_command (argc, argv) switches[n_switches].ordering = 0; /* These are always valid, since gcc.c itself understands it. */ if (!strcmp (p, "save-temps") - || !strcmp (p, "fsyntax-only") || !strcmp (p, "static-libgcc") || !strcmp (p, "shared-libgcc")) switches[n_switches].validated = 1; @@ -5858,7 +5849,7 @@ main (argc, argv) /* If options said don't run linker, complain about input files to be given to the linker. */ - if (! linker_was_run && error_count == 0 && flag_syntax_only == 0) + if (! linker_was_run && error_count == 0) for (i = 0; (int) i < n_infiles; i++) if (explicit_link_files[i]) error ("%s: linker input file unused because linking not done", |