[Ada] Remove obsolete code in trans.c
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 31 May 2018 10:47:24 +0000 (10:47 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:47:24 +0000 (10:47 +0000)
2018-05-31  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/trans.c (Call_to_gnu): Remove obsolete code.

From-SVN: r261013

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

index 546e0d853a681b789f487d0601c753eb83ec24fa..84281e290cf116f04f92e176815f767e5abc1c79 100644 (file)
@@ -1,3 +1,7 @@
+2018-05-31  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (Call_to_gnu): Remove obsolete code.
+
 2018-05-31  Piotr Trojanek  <trojanek@adacore.com>
 
        * sem_ch6.adb (Check_Missing_Return): Handle procedures with no
index 32b5ef1dc750af9b05973627ccb7470e8877933c..dabf2bb8b02bfdd0315c103a0d8c566de773777e 100644 (file)
@@ -4614,15 +4614,6 @@ Call_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, tree gnu_target,
        gnu_actual
          = emit_range_check (gnu_actual, gnat_formal_type, gnat_actual);
 
-      /* Unless this is an In parameter, we must remove any justified modular
-        building from GNU_NAME to get an lvalue.  */
-      if (!in_param
-         && TREE_CODE (gnu_name) == CONSTRUCTOR
-         && TREE_CODE (TREE_TYPE (gnu_name)) == RECORD_TYPE
-         && TYPE_JUSTIFIED_MODULAR_P (TREE_TYPE (gnu_name)))
-       gnu_name
-         = convert (TREE_TYPE (TYPE_FIELDS (TREE_TYPE (gnu_name))), gnu_name);
-
       /* First see if the parameter is passed by reference.  */
       if (is_true_formal_parm && DECL_BY_REF_P (gnu_formal))
        {