aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2025-04-10 11:03:04 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2025-04-10 11:03:04 +0100
commit4c8c373495d7d863dfb7102726ac3b4b41685df4 (patch)
treece9e1c6b620d05be673a05b703b732882163f5fa /libjava/classpath/lib/java
parent72dff34bcdd6f05b64bbf07739ab815e673b5946 (diff)
downloadgcc-4c8c373495d7d863dfb7102726ac3b4b41685df4.zip
gcc-4c8c373495d7d863dfb7102726ac3b4b41685df4.tar.gz
gcc-4c8c373495d7d863dfb7102726ac3b4b41685df4.tar.bz2
Avoid using POINTER_DIFF_EXPR for overlap checks [PR119399]
In r10-4803-g8489e1f45b50600c I'd used POINTER_DIFF_EXPR to subtract the two pointers involved in an overlap test. I'm not sure whether I'd specifically chosen that over MINUS_EXPR or not; if so, the only reason I can think of is that it is probably faster on targets with PSImode pointers. Regardless, as the PR points out, subtracting unrelated pointers using POINTER_DIFF_EXPR is undefined behaviour. gcc/ PR tree-optimization/119399 * tree-data-ref.cc (create_waw_or_war_checks): Use a MINUS_EXPR on two converted pointers, rather than converting a POINTER_DIFF_EXPR on the pointers. gcc/testsuite/ PR tree-optimization/119399 * gcc.dg/vect/pr119399.c: New test.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions