diff options
author | Lewis Hyatt <lhyatt@gmail.com> | 2023-10-18 12:37:08 -0400 |
---|---|---|
committer | Lewis Hyatt <lhyatt@gmail.com> | 2023-10-19 09:45:50 -0400 |
commit | 7a1de35f9cdc13098375baa277496147be271dd3 (patch) | |
tree | 8c7e6392be5aa3a14a016384283a28393fb6b23b /gcc/c-family/ChangeLog | |
parent | 8d7250fa7d61892a27c59f53b025581e33477311 (diff) |
c++: Make -Wunknown-pragmas controllable by #pragma GCC diagnostic [PR89038]
As noted on the PR, commit r13-1544, the fix for PR53431, did not handle
the specific case of -Wunknown-pragmas, because that warning is issued
during preprocessing, but not by libcpp directly (it comes from the
cb_def_pragma callback). Address that by handling this pragma in
addition to libcpp pragmas during the early pragma handler.
gcc/c-family/ChangeLog:
PR c++/89038
* c-pragma.cc (handle_pragma_diagnostic_impl): Handle
-Wunknown-pragmas during early processing.
gcc/testsuite/ChangeLog:
PR c++/89038
* c-c++-common/cpp/Wunknown-pragmas-1.c: New test.
Diffstat (limited to 'gcc/c-family/ChangeLog')
0 files changed, 0 insertions, 0 deletions