]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl.c (build_result_decl): Remove no longer applicable promotion.
authorRichard Guenther <rguenther@suse.de>
Tue, 9 Sep 2008 13:52:59 +0000 (13:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Sep 2008 13:52:59 +0000 (13:52 +0000)
2008-09-09  Richard Guenther  <rguenther@suse.de>

* decl.c (build_result_decl): Remove no longer applicable
promotion.

From-SVN: r140149

gcc/java/ChangeLog
gcc/java/decl.c

index f80688f0d211925feffc785d38f9198ed2bd2136..c88eca60d74121bd972ae8094b6d87fa3236b6ec 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-09  Richard Guenther  <rguenther@suse.de>
+
+       * decl.c (build_result_decl): Remove no longer applicable
+       promotion.
+
 2008-09-05  David Daney  <ddaney@avtrex.com>
 
        * gcj.texi (-freduced-reflection): Clarify option's restrictions.
index 1768109414d10d8f9d1a5cb6af387f584751b156..bae077887bf343bab90e8578dce11570b7bcbb91 100644 (file)
@@ -1694,10 +1694,6 @@ build_result_decl (tree fndecl)
   tree result = DECL_RESULT (fndecl);
   if (! result)
     {
-      /* To be compatible with C_PROMOTING_INTEGER_TYPE_P in cc1/cc1plus. */
-      if (INTEGRAL_TYPE_P (restype)
-         && TYPE_PRECISION (restype) < TYPE_PRECISION (integer_type_node))
-       restype = integer_type_node;
       result = build_decl (RESULT_DECL, NULL_TREE, restype);
       DECL_ARTIFICIAL (result) = 1;
       DECL_IGNORED_P (result) = 1;