aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-10-13 14:58:43 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-10-13 14:58:43 +0000
commit2e151b6dbc8a63a5720ee6685702f1ecf535ef1f (patch)
tree7f1ba9308891c351f6e3491feab6691890bea6d8 /gcc/ada/gcc-interface/decl.c
parent3246afaa934e022637d71f5e2fc67a8feb7165f1 (diff)
downloadgcc-2e151b6dbc8a63a5720ee6685702f1ecf535ef1f.zip
gcc-2e151b6dbc8a63a5720ee6685702f1ecf535ef1f.tar.gz
gcc-2e151b6dbc8a63a5720ee6685702f1ecf535ef1f.tar.bz2
* gcc-interface/decl.c (gnat_to_gnu_param): Remove obsolete comment.
From-SVN: r203499
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
-rw-r--r--gcc/ada/gcc-interface/decl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index 456d7ab..6b1e2a5 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -5824,12 +5824,8 @@ gnat_to_gnu_param (Entity_Id gnat_param, Mechanism_Type mech,
ro_param || by_ref || by_component_ptr);
DECL_BY_REF_P (gnu_param) = by_ref;
DECL_BY_COMPONENT_PTR_P (gnu_param) = by_component_ptr;
- DECL_BY_DESCRIPTOR_P (gnu_param) = (mech == By_Descriptor ||
- mech == By_Short_Descriptor);
- /* Note that, in case of a parameter passed by double reference, the
- DECL_POINTS_TO_READONLY_P flag is meant for the second reference.
- The first reference always points to read-only, as it points to
- the second reference, i.e. the reference to the actual parameter. */
+ DECL_BY_DESCRIPTOR_P (gnu_param)
+ = (mech == By_Descriptor || mech == By_Short_Descriptor);
DECL_POINTS_TO_READONLY_P (gnu_param)
= (ro_param && (by_ref || by_component_ptr));
DECL_CAN_NEVER_BE_NULL_P (gnu_param) = Can_Never_Be_Null (gnat_param);