diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-08-12 16:23:12 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2009-08-12 16:23:12 +0000 |
commit | 666e3cebe13c86ea21f84fb5b5d6d9e1dc49a9a5 (patch) | |
tree | b0b3176056066392830be15ad78cfae11a09644e /gcc/config | |
parent | 4b462d7786135d389f58ccda0a9dddf9ed4cee73 (diff) | |
download | gcc-666e3cebe13c86ea21f84fb5b5d6d9e1dc49a9a5.zip gcc-666e3cebe13c86ea21f84fb5b5d6d9e1dc49a9a5.tar.gz gcc-666e3cebe13c86ea21f84fb5b5d6d9e1dc49a9a5.tar.bz2 |
tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation for for_return == 2.
2009-08-12 Paolo Bonzini <bonzini@gnu.org>
* doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
for for_return == 2.
* function.c (assign_parm_setup_reg): Use for_return == 2, improve
comments.
* calls.c (expand_call): Fix typo.
* explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
and PARM_DECL.
* stmt.c (expand_value_return): Use promote_function_mode to copy out
of pseudo.
* targhooks.c (default_promote_function_mode): Handle for_return == 2.
* config/cris/cris.c (cris_promote_function_mode): Likewise.
* config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
* config/pa/pa.c (pa_promote_function_mode): Likewise.
From-SVN: r150700
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/cris/cris.c | 2 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.c | 2 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index a9fe9de..6b3fd0f 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -3771,7 +3771,7 @@ cris_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, /* Defining PROMOTE_FUNCTION_RETURN in gcc-2.7.2 uncovered bug 981110 (even when modifying FUNCTION_VALUE to return the promoted mode). Maybe pointless as of now, but let's keep the old behavior. */ - if (for_return) + if (for_return == 1) return mode; return CRIS_PROMOTED_MODE (mode, *punsignedp, type); } diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index 9e94279..8521f37 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -2701,7 +2701,7 @@ mmix_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, { /* Apparently not doing TRT if int < register-size. FIXME: Perhaps FUNCTION_VALUE and LIBCALL_VALUE needs tweaking as some ports say. */ - if (for_return) + if (for_return == 1) return mode; /* Promotion of modes currently generates slow code, extending before diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index e60ddde..c5543ef 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -9199,7 +9199,7 @@ pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, const_tree fntype ATTRIBUTE_UNUSED, int for_return) { - if (!for_return) + if (for_return == 0) return mode; return promote_mode (type, mode, punsignedp); } |