]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc-interface/decl.c (gnat_to_gnu_param): Remove obsolete comment.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 13 Oct 2013 14:58:43 +0000 (14:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 13 Oct 2013 14:58:43 +0000 (14:58 +0000)
From-SVN: r203499

gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c

index 2ed3e37f8bfa3ba3ace533e6e3db3577515db382..cdd30eb47165f0f421d0a811eea54bad710e3876 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/decl.c (gnat_to_gnu_param): Remove obsolete comment.
+
 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc-interface/utils.c (DEF_FUNCTION_TYPE_8): Define.
index 456d7ab7ad953e1b3009878a88df720f77d9bea5..6b1e2a5e307bde35053358ea175384d93770540b 100644 (file)
@@ -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);