diff options
author | Mike Stump <mrs@apple.com> | 2004-05-05 12:20:33 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2004-05-05 12:20:33 +0000 |
commit | 4bed378709c6b95e918002425a23f5fa36943a93 (patch) | |
tree | d6a840d1926291ab41d00a9437a894724197515a /gcc/c-opts.c | |
parent | bb8a619e12e06104939fac9969dcd07615ee7260 (diff) | |
download | gcc-4bed378709c6b95e918002425a23f5fa36943a93.zip gcc-4bed378709c6b95e918002425a23f5fa36943a93.tar.gz gcc-4bed378709c6b95e918002425a23f5fa36943a93.tar.bz2 |
invoke.texi (Directory Options): Document -iquote.
* doc/invoke.texi (Directory Options): Document -iquote.
* doc/cpp.texi: Likewise.
* doc/cppopts.texi: Likewise.
* c-opts.c (c_common_missing_argument): Add -iquote processing.
(c_common_handle_option): Likewise.
* c.opt (iquote): Add.
* gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
* c-incpath.c (merge_include_chains): Update comment to use -iquote.
* c-opts.c (case OPT_I): Deprecate -I- support.
* doc/invoke.texi: Likewise.
* doc/cpp.texi: Likewise.
* doc/cppopts.texi: Likewise.
From-SVN: r81521
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; |