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/c-decl.c | |
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/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index bde95aa..012339e 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6270,18 +6270,6 @@ start_function (struct c_declspecs *declspecs, struct c_declarator *declarator, declare_parm_level (); restype = TREE_TYPE (TREE_TYPE (current_function_decl)); - /* Promote the value to int before returning it. */ - if (c_promoting_integer_type_p (restype)) - { - /* It retains unsignedness if not really getting wider. */ - if (TYPE_UNSIGNED (restype) - && (TYPE_PRECISION (restype) - == TYPE_PRECISION (integer_type_node))) - restype = unsigned_type_node; - else - restype = integer_type_node; - } - resdecl = build_decl (RESULT_DECL, NULL_TREE, restype); DECL_ARTIFICIAL (resdecl) = 1; DECL_IGNORED_P (resdecl) = 1; |