public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] Handle non-standard booleans in if_expression condition
@ 2022-05-06  7:18 Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2022-05-06  7:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8e9c5b9eb6264c9978ec994c5de165965ebdd510

commit 8e9c5b9eb6264c9978ec994c5de165965ebdd510
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Feb 17 03:12:00 2022 -0300

    Handle non-standard booleans in if_expression condition
    
    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.
    
    [changelog]
    * exp_ch4.adb (Expand_N_If_Expression): Call Adjust_Condition to
    handle non-standard booleans.

Diff:
---
 gcc/ada/exp_ch4.adb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index 2506c67e936..08dbd9bd8bf 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -5793,6 +5793,10 @@ package body Exp_Ch4 is
    --  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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] Handle non-standard booleans in if_expression condition
@ 2022-01-27  9:49 Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2022-01-27  9:49 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c42aeafeff55be1192aff2abf50868c13aa3691d

commit c42aeafeff55be1192aff2abf50868c13aa3691d
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Dec 29 08:44:55 2021 -0300

    Handle non-standard booleans in if_expression condition
    
    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.
    
    [changelog]
    * exp_ch4.adb (Expand_N_If_Expression): Call Adjust_Condition to
    handle non-standard booleans.

Diff:
---
 gcc/ada/exp_ch4.adb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index c31f5bb36ba..662f975291e 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -5793,6 +5793,10 @@ package body Exp_Ch4 is
    --  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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-06  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06  7:18 [gcc(refs/users/aoliva/heads/testme)] Handle non-standard booleans in if_expression condition Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2022-01-27  9:49 Alexandre Oliva

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).