diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-04-19 18:15:39 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-04-19 18:15:39 +0200 |
commit | 33bf8e5385099c2963f278bff38e4f917eddf1d8 (patch) | |
tree | 8d2d8dd8a676648e287efbfbd00066e0965cd003 /gcc | |
parent | 1216460e7023cd8ec49933866107417c70e933c9 (diff) | |
download | gcc-33bf8e5385099c2963f278bff38e4f917eddf1d8.zip gcc-33bf8e5385099c2963f278bff38e4f917eddf1d8.tar.gz gcc-33bf8e5385099c2963f278bff38e4f917eddf1d8.tar.bz2 |
internal-fn: Fix up expand_arith_overflow [PR114753]
During backporting I've noticed I've missed one return spot for the
restoration of the original flag_trapv flag value.
2024-04-19 Jakub Jelinek <jakub@redhat.com>
PR middle-end/114753
* internal-fn.cc (expand_arith_overflow): Add one missing restore
of flag_trapv before return.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/internal-fn.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc index c7c5222..2c76444 100644 --- a/gcc/internal-fn.cc +++ b/gcc/internal-fn.cc @@ -2793,6 +2793,7 @@ expand_arith_overflow (enum tree_code code, gimple *stmt) case PLUS_EXPR: expand_addsub_overflow (loc, code, lhs, arg0, arg1, unsr_p, unsr_p, unsr_p, false, NULL); + flag_trapv = save_flag_trapv; return; case MULT_EXPR: expand_mul_overflow (loc, lhs, arg0, arg1, unsr_p, |