We failed to call Adjust_Condition for the condition expression of an
if_expression, so non-standard booleans were expanded like standard
booleans, disregarding representation clauses. Fixed.
gcc/ada/
* exp_ch4.adb (Expand_N_If_Expression): Call Adjust_Condition to
handle non-standard booleans.
-- Start of processing for Expand_N_If_Expression
begin
+ -- Deal with non-standard booleans
+
+ Adjust_Condition (Cond);
+
-- Check for MINIMIZED/ELIMINATED overflow mode.
-- Apply_Arithmetic_Overflow_Check will not deal with Then/Else_Actions
-- so skip this step if any actions are present.