Skip to content

Commit 33bf8e5

Browse files
committed
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 <[email protected]> PR middle-end/114753 * internal-fn.cc (expand_arith_overflow): Add one missing restore of flag_trapv before return.
1 parent 1216460 commit 33bf8e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/internal-fn.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,7 @@ expand_arith_overflow (enum tree_code code, gimple *stmt)
27932793
case PLUS_EXPR:
27942794
expand_addsub_overflow (loc, code, lhs, arg0, arg1, unsr_p,
27952795
unsr_p, unsr_p, false, NULL);
2796+
flag_trapv = save_flag_trapv;
27962797
return;
27972798
case MULT_EXPR:
27982799
expand_mul_overflow (loc, lhs, arg0, arg1, unsr_p,

0 commit comments

Comments
 (0)