aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-incpath.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2004-05-05 12:20:33 +0000
committerMike Stump <mrs@gcc.gnu.org>2004-05-05 12:20:33 +0000
commit4bed378709c6b95e918002425a23f5fa36943a93 (patch)
treed6a840d1926291ab41d00a9437a894724197515a /gcc/c-incpath.c
parentbb8a619e12e06104939fac9969dcd07615ee7260 (diff)
downloadgcc-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-incpath.c')
-rw-r--r--gcc/c-incpath.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-incpath.c b/gcc/c-incpath.c
index 167b05a..b4da86f 100644
--- a/gcc/c-incpath.c
+++ b/gcc/c-incpath.c
@@ -171,6 +171,7 @@ add_standard_paths (const char *sysroot, const char *iprefix, int cxx_stdinc)
JOIN, unless it duplicates JOIN in which case the last path is
removed. Return the head of the resulting chain. Any of HEAD,
JOIN and SYSTEM can be NULL. */
+
static struct cpp_dir *
remove_duplicates (cpp_reader *pfile, struct cpp_dir *head,
struct cpp_dir *system, struct cpp_dir *join,
@@ -243,9 +244,10 @@ remove_duplicates (cpp_reader *pfile, struct cpp_dir *head,
We can't just merge the lists and then uniquify them because then
we may lose directories from the <> search path that should be
- there; consider -Ifoo -Ibar -I- -Ifoo -Iquux. It is however safe
- to treat -Ibar -Ifoo -I- -Ifoo -Iquux as if written -Ibar -I- -Ifoo
- -Iquux. */
+ there; consider -iquote foo -iquote bar -Ifoo -Iquux. It is
+ however safe to treat -iquote bar -iquote foo -Ifoo -Iquux as if
+ written -iquote bar -Ifoo -Iquux. */
+
static void
merge_include_chains (cpp_reader *pfile, int verbose)
{