diff options
author | Neil Booth <neil@gcc.gnu.org> | 2002-08-11 07:32:19 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-11 07:32:19 +0000 |
commit | b4a93904915748680a5e7ba1fc78e78a8eb10e72 (patch) | |
tree | d73a75baf01dafc07eb90997c31af2280b21f9a0 /gcc/cppinit.c | |
parent | 982f35d62b68f23a8f84e39b2a6302bf2d8c2b19 (diff) | |
download | gcc-b4a93904915748680a5e7ba1fc78e78a8eb10e72.zip gcc-b4a93904915748680a5e7ba1fc78e78a8eb10e72.tar.gz gcc-b4a93904915748680a5e7ba1fc78e78a8eb10e72.tar.bz2 |
c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
* c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
* c-opts.c (parse_option): Rename find_opt.
(set_std_c99): New function.
(COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
(missing_arg): Remove OPT_std_bad. Handle -o.
(c_common_decode_option): Handle input and output file names,
-o and -remap. Clean up -std= handling.
* cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
(cpp_handle_option): Similarly. Don't handle filenames.
From-SVN: r56197
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 927311e..86b4c8e 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1151,9 +1151,7 @@ new_pending_directive (pend, text, handler) DEF_OPT("iprefix", no_pth, OPT_iprefix) \ DEF_OPT("isystem", no_dir, OPT_isystem) \ DEF_OPT("iwithprefix", no_dir, OPT_iwithprefix) \ - DEF_OPT("iwithprefixbefore", no_dir, OPT_iwithprefixbefore) \ - DEF_OPT("o", no_fil, OPT_o) \ - DEF_OPT("remap", 0, OPT_remap) + DEF_OPT("iwithprefixbefore", no_dir, OPT_iwithprefixbefore) #define DEF_OPT(text, msg, code) code, enum opt_code @@ -1256,19 +1254,6 @@ cpp_handle_option (pfile, argc, argv) int i = 0; struct cpp_pending *pend = CPP_OPTION (pfile, pending); - /* Interpret "-" or a non-option as a file name. */ - if (argv[i][0] != '-' || argv[i][1] == '\0') - { - if (CPP_OPTION (pfile, in_fname) == NULL) - CPP_OPTION (pfile, in_fname) = argv[i]; - else if (CPP_OPTION (pfile, out_fname) == NULL) - CPP_OPTION (pfile, out_fname) = argv[i]; - else - cpp_error (pfile, DL_ERROR, - "too many filenames. Type %s --help for usage info", - progname); - } - else { enum opt_code opt_code; int opt_index; @@ -1303,22 +1288,10 @@ cpp_handle_option (pfile, argc, argv) case OPT_D: new_pending_directive (pend, arg, cpp_define); break; - case OPT_remap: - CPP_OPTION (pfile, remap) = 1; - break; case OPT_iprefix: CPP_OPTION (pfile, include_prefix) = arg; CPP_OPTION (pfile, include_prefix_len) = strlen (arg); break; - case OPT_o: - if (CPP_OPTION (pfile, out_fname) == NULL) - CPP_OPTION (pfile, out_fname) = arg; - else - { - cpp_error (pfile, DL_ERROR, "output filename specified twice"); - return argc; - } - break; case OPT_MG: CPP_OPTION (pfile, print_deps_missing_files) = 1; |