aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorMartin Uecker <muecker@gwdg.de>2021-08-22 23:47:58 +0200
committerMartin Uecker <muecker@gwdg.de>2021-08-23 00:15:17 +0200
commit972eab51f53d1db26864ec7d62d40c2ff83407ec (patch)
tree46489f7d3076d7d301721ed6f52c6fc0531ef842 /gcc/gimple.c
parent9b08f7764cecd16cba84944f2a8b67a7f73a7ce7 (diff)
downloadgcc-972eab51f53d1db26864ec7d62d40c2ff83407ec.zip
gcc-972eab51f53d1db26864ec7d62d40c2ff83407ec.tar.gz
gcc-972eab51f53d1db26864ec7d62d40c2ff83407ec.tar.bz2
Correct treatment of qualifiers for pointers to arrays for C2X [PR98397]
2021-08-22 Martin Uecker <muecker@gwdg.de> gcc/c/ PR c/98397 * c-typeck.c (comp_target_types): Change pedwarn to pedwarn_c11 for pointers to arrays with qualifiers. (build_conditional_expr): For C23 don't lose qualifiers for pointers to arrays when the other pointer is a void pointer. Update warnings. (convert_for_assignment): Update warnings for C2X when converting from void* with qualifiers to a pointer to array with the same qualifiers. gcc/testsuite/ PR c/98397 * gcc.dg/c11-qual-1.c: New test. * gcc.dg/c2x-qual-1.c: New test. * gcc.dg/c2x-qual-2.c: New test. * gcc.dg/c2x-qual-3.c: New test. * gcc.dg/c2x-qual-4.c: New test. * gcc.dg/c2x-qual-5.c: New test. * gcc.dg/c2x-qual-6.c: New test. * gcc.dg/c2x-qual-7.c: New test. * gcc.dg/pointer-array-quals-1.c: Remove unnecessary flag. * gcc.dg/pointer-array-quals-2.c: Remove unnecessary flag.
Diffstat (limited to 'gcc/gimple.c')
0 files changed, 0 insertions, 0 deletions