]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
trans.c (gnat_to_gnu): Do not apply special handling of boolean rvalues to function...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 24 Feb 2017 10:54:21 +0000 (10:54 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 24 Feb 2017 10:54:21 +0000 (10:54 +0000)
* gcc-interface/trans.c (gnat_to_gnu): Do not apply special handling
of boolean rvalues to function calls.

From-SVN: r245708

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

index 950fed95d1bff033406abff9f8e80a05ceb335f7..a77d28783ea4e250ca2b8bf8ae46f6eafca78531 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (gnat_to_gnu): Do not apply special handling
+       of boolean rvalues to function calls.
+
 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (return_value_ok_for_nrv_p): Add sanity check.
index fa4940a90fb5a9e1753d3272a94cd853d79a1599..85d3198eb910c93c4eefae1bf6fc6386c441af0b 100644 (file)
@@ -7322,7 +7322,6 @@ gnat_to_gnu (Node_Id gnat_node)
       && (kind == N_Identifier
          || kind == N_Expanded_Name
          || kind == N_Explicit_Dereference
-         || kind == N_Function_Call
          || kind == N_Indexed_Component
          || kind == N_Selected_Component)
       && TREE_CODE (get_base_type (gnu_result_type)) == BOOLEAN_TYPE