projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eae3332
)
[Ada] Plug small loophole with boolean values
author
Eric Botcazou
<ebotcazou@adacore.com>
Fri, 24 Sep 2021 13:20:22 +0000
(15:20 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Tue, 5 Oct 2021 08:20:08 +0000
(08:20 +0000)
gcc/ada/
* gcc-interface/trans.c (gnat_to_gnu): Do not wrap boolean values
referenced in pragmas.
gcc/ada/gcc-interface/trans.c
patch
|
blob
|
history
diff --git
a/gcc/ada/gcc-interface/trans.c
b/gcc/ada/gcc-interface/trans.c
index
ddf08b0
..
3fec060
100644
(file)
--- 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))
{