diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-10 21:32:15 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-10 21:32:15 +0000 |
commit | 5c5d1ea0c8c9faf670e045f24fbe53f5115d46da (patch) | |
tree | 9bc54295cab080e92961c0c2c633b0cf8d87d4a2 /gcc/cppinit.c | |
parent | d9271ccca6f90fcdd7daed87f0bb2f6e94d2c698 (diff) | |
download | gcc-5c5d1ea0c8c9faf670e045f24fbe53f5115d46da.zip gcc-5c5d1ea0c8c9faf670e045f24fbe53f5115d46da.tar.gz gcc-5c5d1ea0c8c9faf670e045f24fbe53f5115d46da.tar.bz2 |
cppinit.c (OPT_g): Remove.
* cppinit.c (OPT_g): Remove.
(cpp_handle_option): Update for removed -g3.
(print_help): Update.
* cpplib.h (struct cpp_options): Remove debug_output.
* cppmain.c (setup_callbacks, cb_define): Update.
* gcc.c (cpp_options): Translate -g3 to -dD.
From-SVN: r38881
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 0c43a23..fd6a408 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1062,7 +1062,6 @@ new_pending_directive (pend, text, handler) DEF_OPT("fpreprocessed", 0, OPT_fpreprocessed) \ DEF_OPT("fshow-column", 0, OPT_fshow_column) \ DEF_OPT("ftabstop=", no_num, OPT_ftabstop) \ - DEF_OPT("g", no_arg, OPT_g) /* arg optional */ \ DEF_OPT("h", 0, OPT_h) \ DEF_OPT("idirafter", no_dir, OPT_idirafter) \ DEF_OPT("imacros", no_fil, OPT_imacros) \ @@ -1230,10 +1229,10 @@ cpp_handle_option (pfile, argc, argv) { arg = &argv[i][cl_options[opt_index].opt_len + 1]; - /* Yuk. Special case for -g and -W as they must not swallow + /* Yuk. Special case for -W as it must not swallow up any following argument. If this becomes common, add another field to the cl_options table. */ - if (arg[0] == '\0' && !(opt_code == OPT_g || opt_code == OPT_W)) + if (arg[0] == '\0' && opt_code != OPT_W) { arg = argv[++i]; if (!arg) @@ -1282,10 +1281,6 @@ cpp_handle_option (pfile, argc, argv) case OPT_w: CPP_OPTION (pfile, inhibit_warnings) = 1; break; - case OPT_g: /* Silently ignore anything but -g3. */ - if (!strcmp(&argv[i][2], "3")) - CPP_OPTION (pfile, debug_output) = 1; - break; case OPT_h: case OPT__help: print_help (); @@ -1826,7 +1821,6 @@ Switches:\n\ -MP Generate phony targets for all headers\n\ -MQ <target> Add a MAKE-quoted target\n\ -MT <target> Add an unquoted target\n\ - -g3 Include #define and #undef directives in the output\n\ "), stdout); fputs (_("\ -D<macro> Define a <macro> with string '1' as its value\n\ |