aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/zero-scratch-regs-leafy-2.c
diff options
context:
space:
mode:
authorLewis Hyatt <lhyatt@gmail.com>2023-10-18 12:37:08 -0400
committerLewis Hyatt <lhyatt@gmail.com>2023-10-19 09:09:39 -0400
commit19cc4b9d74940f29c961e2a5a8b1fa84992d3d30 (patch)
tree97c1b13ccbb61ad0667d4238047bf4dc208b0731 /gcc/testsuite/c-c++-common/zero-scratch-regs-leafy-2.c
parent202a214d6859d91af5a95aa989321c5d2173c40a (diff)
downloadgcc-19cc4b9d74940f29c961e2a5a8b1fa84992d3d30.zip
gcc-19cc4b9d74940f29c961e2a5a8b1fa84992d3d30.tar.gz
gcc-19cc4b9d74940f29c961e2a5a8b1fa84992d3d30.tar.bz2
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/testsuite/c-c++-common/zero-scratch-regs-leafy-2.c')
0 files changed, 0 insertions, 0 deletions