aboutsummaryrefslogtreecommitdiff
path: root/gcc/debug.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-11-19 00:19:57 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2024-11-29 12:09:09 -0800
commitaf974df94751195ce72e86d7b88e5d5444375b45 (patch)
treed558658782bf2bdfca99c5183eae20da72c3f468 /gcc/debug.cc
parente79583cef924f5fb5de551bd61da7b5fdee5c690 (diff)
downloadgcc-af974df94751195ce72e86d7b88e5d5444375b45.zip
gcc-af974df94751195ce72e86d7b88e5d5444375b45.tar.gz
gcc-af974df94751195ce72e86d7b88e5d5444375b45.tar.bz2
aarch64: Mark __builtin_aarch64_im_lane_boundsi as leaf and nothrow [PR117665]
__builtin_aarch64_im_lane_boundsi is known not to throw or call back into another function since it will either folded into an NOP or will produce a compiler error. This fixes the ICE by fixing the missed optimization. It does not fix the underlying issue with fold_marked_statements; which I filed as PR 117668. Built and tested for aarch64-linux-gnu. PR target/117665 gcc/ChangeLog: * config/aarch64/aarch64-builtins.cc (aarch64_init_simd_builtin_functions): Pass nothrow and leaf as attributes to aarch64_general_add_builtin for __builtin_aarch64_im_lane_boundsi. gcc/testsuite/ChangeLog: * g++.target/aarch64/lane-bound-1.C: New test. * gcc.target/aarch64/lane-bound-3.c: New test. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/debug.cc')
0 files changed, 0 insertions, 0 deletions