summaryrefslogtreecommitdiff
path: root/gcc/c-incpath.h
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-22 02:39:35 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-22 02:39:35 +0000
commit06fd18c9e3c5c0af056bda9beef74491532a973e (patch)
tree0fb35652621330c19f8e8ce0ffeb987cb15f69d5 /gcc/c-incpath.h
parent9d14ee5b811b69317eaf95df692191783e071be8 (diff)
downloadgcc-06fd18c9e3c5c0af056bda9beef74491532a973e.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-incpath.h')
-rw-r--r--gcc/c-incpath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-incpath.h b/gcc/c-incpath.h
index 30d7fd63d6f..1096016784f 100644
--- a/gcc/c-incpath.h
+++ b/gcc/c-incpath.h
@@ -16,7 +16,7 @@ along with this program; if not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
extern void split_quote_chain (void);
-extern void add_path (char *, int, int);
+extern void add_path (char *, int, int, bool);
extern void register_include_chains (cpp_reader *, const char *,
const char *, int, int, int);
extern void add_cpp_dir_path (struct cpp_dir *, int);