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

[Ada] Always do range check against 'First

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

gcc/ada/

	* exp_ch4.adb (Expand_N_Op_Abs): Always do range check against 'First.

From-SVN: r260862
parent 28cfa269
2018-05-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* exp_ch4.adb (Expand_N_Op_Abs): Always do range check against 'First.
2018-05-29 Eric Botcazou <ebotcazou@adacore.com> 2018-05-29 Eric Botcazou <ebotcazou@adacore.com>
* repinfo.adb (List_Entities): Do not list the Linker_Section for * repinfo.adb (List_Entities): Do not list the Linker_Section for
......
...@@ -6956,8 +6956,7 @@ package body Exp_Ch4 is ...@@ -6956,8 +6956,7 @@ package body Exp_Ch4 is
-- Deal with software overflow checking -- Deal with software overflow checking
if not Backend_Overflow_Checks_On_Target if Is_Signed_Integer_Type (Etype (N))
and then Is_Signed_Integer_Type (Etype (N))
and then Do_Overflow_Check (N) and then Do_Overflow_Check (N)
then then
-- The only case to worry about is when the argument is equal to the -- The only case to worry about is when the argument is equal to the
......
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