Commit c35c40e7 by Richard Kenner Committed by Pierre-Marie de Rodat

[Ada] Clear Do_Overflow_Check when inserting code to do check

2018-05-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

gcc/ada/

	* exp_ch4.adb (Expand_N_Op_Abs): Clear Do_Overflow_Check when inserting
	code to do check.

From-SVN: r260865
parent ccec48c0
2018-05-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* exp_ch4.adb (Expand_N_Op_Abs): Clear Do_Overflow_Check when inserting
code to do check.
2018-05-29 Arnaud Charlet <charlet@adacore.com>
* lib-writ.adb (Write_ALI): Do not use new function from s-casuti yet.
......
......@@ -6977,6 +6977,8 @@ package body Exp_Ch4 is
New_Occurrence_Of (Base_Type (Etype (Expr)), Loc),
Attribute_Name => Name_First)),
Reason => CE_Overflow_Check_Failed));
Set_Do_Overflow_Check (N, False);
end if;
end Expand_N_Op_Abs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment