aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/module.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-01-25 08:30:36 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2024-01-25 11:57:48 -0800
commitf03b8f595b6350732bb0a9a69557c5ed2af085b2 (patch)
tree6b966ccc6fa0ce0fc4da430a7c5f5fd1f834af4b /gcc/cp/module.cc
parent476226290dba8cd7f3e9f4e3f0185b58903db8cd (diff)
downloadgcc-f03b8f595b6350732bb0a9a69557c5ed2af085b2.zip
gcc-f03b8f595b6350732bb0a9a69557c5ed2af085b2.tar.gz
gcc-f03b8f595b6350732bb0a9a69557c5ed2af085b2.tar.bz2
aarch64: Fix undefinedness while testing the J constraint [PR100204]
The J constraint can invoke undefined behavior due to it taking the negative of the ival if ival was HWI_MIN. The fix is simple as casting to `unsigned HOST_WIDE_INT` before doing the negative of it. This does that. Committed as obvious after build/test for aarch64-linux-gnu. gcc/ChangeLog: PR target/100204 * config/aarch64/constraints.md (J): Cast to `unsigned HOST_WIDE_INT` before taking the negative of it. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions