diff options
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 9acdf6f..8dc308c 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -162,6 +162,7 @@ c_common_missing_argument (const char *opt, size_t code) case OPT_idirafter: case OPT_isysroot: case OPT_isystem: + case OPT_iquote: error ("missing path after \"%s\"", opt); break; @@ -303,6 +304,7 @@ c_common_handle_option (size_t scode, const char *arg, int value) error ("-I- specified twice"); quote_chain_split = true; split_quote_chain (); + inform ("obsolete option -I- used, please use -iquote instead"); } break; @@ -954,6 +956,10 @@ c_common_handle_option (size_t scode, const char *arg, int value) iprefix = arg; break; + case OPT_iquote: + add_path (xstrdup (arg), QUOTE, 0); + break; + case OPT_isysroot: sysroot = arg; break; |