aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nds32/nds32-e8.md
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-02-25 09:33:21 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-02-25 09:33:21 +0100
commitcdffc76393488a73671b70481cf8a4b7c289029d (patch)
tree5022055dec0c146568ad9ae6a7f15887628d177b /gcc/config/nds32/nds32-e8.md
parent86a4af2793393e47af6b78cb7094c97914890091 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
openmp: Mark OpenMP atomic write expression as read [PR119000]HEADtrunkmaster
The following testcase was emitting false positive warning that the rhs of #pragma omp atomic write was stored but not read, when the atomic actually does read it. The following patch fixes that by calling default_function_array_read_conversion on it, so that it is marked as read as well as converted from lvalue to rvalue. Furthermore, the code had if (code == NOP_EXPR) ... else ... if (code == NOP_EXPR) ... with none of ... parts changing code, so I've merged the two ifs. 2025-02-25 Jakub Jelinek <jakub@redhat.com> PR c/119000 * c-parser.cc (c_parser_omp_atomic): For omp write call default_function_array_read_conversion on the rhs expression. Merge the two adjacent if (code == NOP_EXPR) blocks. * c-c++-common/gomp/pr119000.c: New test.
Diffstat (limited to 'gcc/config/nds32/nds32-e8.md')
0 files changed, 0 insertions, 0 deletions