aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.cc
diff options
context:
space:
mode:
authorRoger Sayle <roger@nextmovesoftware.com>2024-07-18 08:27:36 +0100
committerRoger Sayle <roger@nextmovesoftware.com>2024-07-18 08:30:31 +0100
commit030186cabe8128e752619e101768cf8823a42c38 (patch)
tree1b3e6a45de0e56da9163a648a17d63050f8fe902 /gcc/cp/tree.cc
parent0231b076dc98eb02e3289b21ace1757782e3917b (diff)
downloadgcc-030186cabe8128e752619e101768cf8823a42c38.zip
gcc-030186cabe8128e752619e101768cf8823a42c38.tar.gz
gcc-030186cabe8128e752619e101768cf8823a42c38.tar.bz2
Implement a -ftrapping-math/-fsignaling-nans TODO in match.pd.
I've been investigating some (float)i == CST optimizations for match.pd, and noticed there's already a TODO comment in match.pd that's relatively easy to implement. When CST is a NaN, we only need to worry about exceptions with flag_trapping_math, and equality/inequality tests for sNaN only behave differently to qNaN with -fsignaling-nans. These issues are related to PR 57371 and PR 106805 in bugzilla. 2024-07-18 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog * match.pd ((FTYPE) N CMP CST): Only worry about exceptions with flag_trapping_math, and about signaling NaNs with HONOR_SNANS. gcc/testsuite/ChangeLog * c-c++-common/pr57371-4.c: Update comment. * c-c++-common/pr57371-5.c: Add missing testcases from pr57371-4.c and update for -fno-signaling-nans -fno-trapping-math.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions