diff options
author | David Malcolm <dmalcolm@redhat.com> | 2021-11-04 17:58:27 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2021-11-09 18:25:44 -0500 |
commit | 8722a17067f1590e82f49b3fd385647b762a45dc (patch) | |
tree | 21f0cace4088bbeca64d6acff45b8c5daa478e6d /gcc/df.h | |
parent | 96276f99352711475236ae5833a781fc55985f01 (diff) | |
download | gcc-8722a17067f1590e82f49b3fd385647b762a45dc.zip gcc-8722a17067f1590e82f49b3fd385647b762a45dc.tar.gz gcc-8722a17067f1590e82f49b3fd385647b762a45dc.tar.bz2 |
c: more precise locations for some -Wpragmas diagnostics
gcc/c-family/ChangeLog:
* c-pragma.c (GCC_BAD_AT): New macro.
(GCC_BAD2_AT): New macro.
(handle_pragma_pack): Use the location of the pertinent token when
issuing diagnostics about invalid constants/actions, and trailing
junk.
(handle_pragma_target): Likewise for non-string "GCC option".
(handle_pragma_message): Likewise for trailing junk.
gcc/testsuite/ChangeLog:
* gcc.dg/bad-pragma-locations.c: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/df.h')
0 files changed, 0 insertions, 0 deletions