aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-05-22 02:39:35 +0000
committerBen Elliston <bje@gcc.gnu.org>2004-05-22 12:39:35 +1000
commitb02398bd5bebe35bc44def2963fee7a4c4cf3568 (patch)
tree0fb35652621330c19f8e8ce0ffeb987cb15f69d5 /gcc/doc/invoke.texi
parent12fea1f9fcb7129531fa3f30a0688a80e68b5353 (diff)
downloadgcc-b02398bd5bebe35bc44def2963fee7a4c4cf3568.zip
gcc-b02398bd5bebe35bc44def2963fee7a4c4cf3568.tar.gz
gcc-b02398bd5bebe35bc44def2963fee7a4c4cf3568.tar.bz2
c.opt (Wmissing-include-dirs): New.
* c.opt (Wmissing-include-dirs): New. * c-opts.c (c_common_handle_option): Pass true for user_supplied_p to add_path () for -I, but false for OPT_idirafter, OPT_iquote and OPT_isystem. Handle case OPT_Wmissing_include_dirs. * c-incpath.h (add_path): Add fourth (bool) argument. * c-incpath.c (add_env_var_paths): Pass false to add_path (). (add_standard_paths): Likewise. (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs is used and the directory was user-supplied via -I. (add_path): Set p->user_supplied_p. Remove duplicated code by using add_cpp_dir_path (). * cpplib.h (struct cpp_options): Add warn_missing_include_dirs. (struct cpp_dir): Add user_supplied_p. * doc/invoke.texi (Warning Options): Document new option. [testsuite] * gcc.dg/cpp/Wmissingdirs.c: New. From-SVN: r82121
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r--gcc/doc/invoke.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 09c538e..1ed9e65 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -222,7 +222,8 @@ in the following sections.
-Wno-invalid-offsetof -Winvalid-pch @gol
-Wlarger-than-@var{len} -Wlong-long @gol
-Wmain -Wmissing-braces @gol
--Wmissing-format-attribute -Wmissing-noreturn @gol
+-Wmissing-format-attribute -Wmissing-include-dirs @gol
+-Wmissing-noreturn @gol
-Wno-multichar -Wnonnull -Wpacked -Wpadded @gol
-Wparentheses -Wpointer-arith -Wredundant-decls @gol
-Wreturn-type -Wsequence-point -Wshadow @gol
@@ -2224,6 +2225,10 @@ int a[2][2] = @{ 0, 1, 2, 3 @};
int b[2][2] = @{ @{ 0, 1 @}, @{ 2, 3 @} @};
@end smallexample
+@item -Wmissing-include-dirs @r{(C, C++, and Objective-C only)}
+@opindex Wmissing-include-dirs
+Warn if a user-supplied include directory does not exist.
+
@item -Wparentheses
@opindex Wparentheses
Warn if parentheses are omitted in certain contexts, such