summaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-11 07:32:19 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-11 07:32:19 +0000
commitdfeeca46b799f6581f0fdcb078e550af795a3ae7 (patch)
treed73a75baf01dafc07eb90997c31af2280b21f9a0 /gcc/cppinit.c
parentcf6f2175b23fbf0d3d15b7c1c7da088635856ee3 (diff)
downloadgcc-dfeeca46b799f6581f0fdcb078e550af795a3ae7.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56197 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 927311e0a02..86b4c8eef3a 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;