aboutsummaryrefslogtreecommitdiff
path: root/gcc/incpath.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-19 22:52:02 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-19 22:52:02 +0000
commitb44135942e122f6a9d3fc5d8df6ca9d7a6b72bef (patch)
tree9941633d22e10fd90db88f3189fbfed8290b8114 /gcc/incpath.c
parent43f9a13cee34bbf3f007469d4dd3c3a67e6d8e6d (diff)
downloadgcc-b44135942e122f6a9d3fc5d8df6ca9d7a6b72bef.zip
gcc-b44135942e122f6a9d3fc5d8df6ca9d7a6b72bef.tar.gz
gcc-b44135942e122f6a9d3fc5d8df6ca9d7a6b72bef.tar.bz2
re PR preprocessor/51303 (-Wmissing-include-dirs warnings reported as [enabled by default])
gcc/ChangeLog: 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR preprocessor/51303 * incpath.c (remove_duplicates): Use cpp_warning. gcc/c-family/ChangeLog: 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR preprocessor/51303 * c-common.c (struct reason_option_codes_t option_codes): Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. gcc/testsuite/ChangeLog: 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR preprocessor/51303 * gcc.dg/cpp/Wmissingdirs.c: Test for the warning option. From-SVN: r214201
Diffstat (limited to 'gcc/incpath.c')
-rw-r--r--gcc/incpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/incpath.c b/gcc/incpath.c
index f495c0a..4ff00df 100644
--- a/gcc/incpath.c
+++ b/gcc/incpath.c
@@ -263,7 +263,8 @@ remove_duplicates (cpp_reader *pfile, struct cpp_dir *head,
/* If -Wmissing-include-dirs is given, warn. */
cpp_options *opts = cpp_get_options (pfile);
if (opts->warn_missing_include_dirs && cur->user_supplied_p)
- cpp_errno (pfile, CPP_DL_WARNING, cur->name);
+ cpp_warning (pfile, CPP_W_MISSING_INCLUDE_DIRS, "%s: %s",
+ cur->name, xstrerror (errno));
reason = REASON_NOENT;
}
}