aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@codesourcery.com>2006-04-04 16:19:59 +0000
committerCarlos O'Donell <carlos@gcc.gnu.org>2006-04-04 16:19:59 +0000
commit2225b57c2884d2e674ccd5ad972a10a7c1316ec9 (patch)
tree320de322098272075404c4d8bf933e1c2b3bfa03 /gcc/function.c
parent41ed243ff0f5c098b930eb3fcc333077b346348a (diff)
downloadgcc-2225b57c2884d2e674ccd5ad972a10a7c1316ec9.zip
gcc-2225b57c2884d2e674ccd5ad972a10a7c1316ec9.tar.gz
gcc-2225b57c2884d2e674ccd5ad972a10a7c1316ec9.tar.bz2
tm.texi (TARGET_STRUCT_VALUE_RTX): Document new value 2 for incoming.
gcc/ 2006-04-04 Carlos O'Donell <carlos@codesourcery.com> * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document new value 2 for incoming. * function.c (expand_function_start): Call struct_value_rtx with incoming as 2. * config/sparc/sparc.md: Comment updated_return. * config/sparc/sparc.opt: Add -mstd-struct-return option. * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard struct return if sparc_std_struct_return and incoming is 2. (print_operand): Do not adjust return if sparc_std_struct_return. gcc/testsuite/ 2006-04-04 Carlos O'Donell <carlos@codesourcery.com> * gcc.target/sparc/struct-ret-check.c: New test. From-SVN: r112672
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 2e9aec0..3becef3 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4120,7 +4120,7 @@ expand_function_start (tree subr)
else
#endif
{
- rtx sv = targetm.calls.struct_value_rtx (TREE_TYPE (subr), 1);
+ rtx sv = targetm.calls.struct_value_rtx (TREE_TYPE (subr), 2);
/* Expect to be passed the address of a place to store the value.
If it is passed as an argument, assign_parms will take care of
it. */