diff options
author | Richard Guenther <rguenther@suse.de> | 2007-07-09 09:53:11 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-07-09 09:53:11 +0000 |
commit | f967586f51957145975ede931f0540f5af3a94fe (patch) | |
tree | 953955594cbb90ca5de652ff6d175d5cd1fca58d /gcc/cp | |
parent | 58b9f26a61eb587028067093cd903f7e830b48ba (diff) | |
download | gcc-f967586f51957145975ede931f0540f5af3a94fe.zip gcc-f967586f51957145975ede931f0540f5af3a94fe.tar.gz gcc-f967586f51957145975ede931f0540f5af3a94fe.tar.bz2 |
decl.c (start_preparsed_function): Do not promote return type.
2007-07-09 Richard Guenther <rguenther@suse.de>
cp/
* decl.c (start_preparsed_function): Do not promote return type.
* c-decl.c (start_function): Do not promote return type.
From-SVN: r126480
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 24a4763..60ae177 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-07-09 Richard Guenther <rguenther@suse.de> + + * decl.c (start_preparsed_function): Do not promote return type. + 2007-07-08 Paolo Carlini <pcarlini@suse.de> PR c++/30535 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index bed426b..b49bfc8 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -10872,9 +10872,6 @@ start_preparsed_function (tree decl1, tree attrs, int flags) /* Build the return declaration for the function. */ restype = TREE_TYPE (fntype); - /* Promote the value to int before returning it. */ - if (c_promoting_integer_type_p (restype)) - restype = type_promotes_to (restype); if (DECL_RESULT (decl1) == NULL_TREE) { tree resdecl; |