public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] internal-fn: Fix up expand_arith_overflow [PR114753]
@ 2024-04-19 16:17 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-04-19 16:17 UTC (permalink / raw)
  To: gcc-patches

Hi!

During backporting I've noticed I've missed one return spot for the
restoration of the original flag_trapv flag value.

Tested on x86_64-linux, committed to trunk as obvious.  Sorry.

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.

--- gcc/internal-fn.cc.jj	2024-04-18 09:45:08.079695875 +0200
+++ gcc/internal-fn.cc	2024-04-19 18:11:51.202204402 +0200
@@ -2793,6 +2793,7 @@ expand_arith_overflow (enum tree_code co
 	    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,

	Jakub


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-19 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-19 16:17 [committed] internal-fn: Fix up expand_arith_overflow [PR114753] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).