diff options
author | Nicholas Guriev <guriev-ns@ya.ru> | 2020-11-12 08:59:35 -0500 |
---|---|---|
committer | Jeff Law <law@torsion.usersys.redhat.com> | 2020-11-12 09:02:12 -0500 |
commit | cb808c583de59ea568fd240144cd9db07272f45e (patch) | |
tree | 4d8acf43cdef4f5987316d55434e2de6958605f2 /libcpp/files.c | |
parent | 071a31a53388229213f323ecdc680ff8aeda456c (diff) | |
download | gcc-cb808c583de59ea568fd240144cd9db07272f45e.zip gcc-cb808c583de59ea568fd240144cd9db07272f45e.tar.gz gcc-cb808c583de59ea568fd240144cd9db07272f45e.tar.bz2 |
Specify reason of -Winvalid-pch warning
gcc/c-family
PR pch/86674
* c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
libcpp
PR pch/86674
* files.c (_cpp_find_file): Use CPP_DL_NOTE not CPP_DL_ERROR in call to
cpp_error.
Diffstat (limited to 'libcpp/files.c')
-rw-r--r-- | libcpp/files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/files.c b/libcpp/files.c index 5af4136..d73177a 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -571,7 +571,7 @@ _cpp_find_file (cpp_reader *pfile, const char *fname, cpp_dir *start_dir, "one or more PCH files were found," " but they were invalid"); if (!cpp_get_options (pfile)->warn_invalid_pch) - cpp_error (pfile, CPP_DL_ERROR, + cpp_error (pfile, CPP_DL_NOTE, "use -Winvalid-pch for more information"); } |