Specify reason of -Winvalid-pch warning
authorNicholas Guriev <guriev-ns@ya.ru>
Thu, 12 Nov 2020 13:59:35 +0000 (08:59 -0500)
committerJeff Law <law@torsion.usersys.redhat.com>
Thu, 12 Nov 2020 14:02:12 +0000 (09:02 -0500)
commitcb808c583de59ea568fd240144cd9db07272f45e
tree4d8acf43cdef4f5987316d55434e2de6958605f2
parent071a31a53388229213f323ecdc680ff8aeda456c
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.
gcc/c-family/c-pch.c
libcpp/files.c