summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-09 13:52:59 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-09 13:52:59 +0000
commit54003dcf8df704c11a23544d54ecd2f182aff26d (patch)
treed04a699b8293d16870d923b84ff96cb30760b831 /gcc
parent01278cee65c357a23b1f079ba1d691be1eac6cf3 (diff)
downloadgcc-54003dcf8df704c11a23544d54ecd2f182aff26d.tar.gz
2008-09-09 Richard Guenther <rguenther@suse.de>
* decl.c (build_result_decl): Remove no longer applicable promotion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140149 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/decl.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index f80688f0d21..c88eca60d74 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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.
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 1768109414d..bae077887bf 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -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;