public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4177] [Ada] Plug small loophole with boolean values
@ 2021-10-05  8:24 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-05  8:24 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-4177-gbbdf2d3967366db0148dc454172f594a951dbb8b
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Fri Sep 24 15:20:22 2021 +0200

    [Ada] Plug small loophole with boolean values
    
    gcc/ada/
    
            * gcc-interface/trans.c (gnat_to_gnu): Do not wrap boolean values
            referenced in pragmas.

Diff:
---
 gcc/ada/gcc-interface/trans.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c
index ddf08b0a501..3fec0601bbf 100644
--- a/gcc/ada/gcc-interface/trans.c
+++ b/gcc/ada/gcc-interface/trans.c
@@ -8261,6 +8261,7 @@ gnat_to_gnu (Node_Id gnat_node)
 	  || kind == N_Selected_Component)
       && TREE_CODE (get_base_type (gnu_result_type)) == BOOLEAN_TYPE
       && Nkind (Parent (gnat_node)) != N_Attribute_Reference
+      && Nkind (Parent (gnat_node)) != N_Pragma_Argument_Association
       && Nkind (Parent (gnat_node)) != N_Variant_Part
       && !lvalue_required_p (gnat_node, gnu_result_type, false, false))
     {


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

only message in thread, other threads:[~2021-10-05  8:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05  8:24 [gcc r12-4177] [Ada] Plug small loophole with boolean values Pierre-Marie de Rodat

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