aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.vnet.ibm.com>2008-10-24 23:45:02 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2008-10-24 23:45:02 +0000
commit099590dcb65d899ffdf0c24785fb31dbdfed06cc (patch)
tree841e64726b868ed51db543466533595a6ff847a6 /gcc/function.c
parentd3a5ecb5dcf6ad53d8d4256c54fca5256bfbd3bc (diff)
downloadgcc-099590dcb65d899ffdf0c24785fb31dbdfed06cc.zip
gcc-099590dcb65d899ffdf0c24785fb31dbdfed06cc.tar.gz
gcc-099590dcb65d899ffdf0c24785fb31dbdfed06cc.tar.bz2
PR target/37841: Fix SPU abi
From-SVN: r141356
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 08dc95a..b40b0db 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3473,6 +3473,10 @@ locate_and_pad_parm (enum machine_mode passed_mode, tree type, int in_regs,
locate->size.constant -= part_size_in_regs;
#endif /* ARGS_GROW_DOWNWARD */
+
+#ifdef FUNCTION_ARG_OFFSET
+ locate->offset.constant += FUNCTION_ARG_OFFSET (passed_mode, type);
+#endif
}
/* Round the stack offset in *OFFSET_PTR up to a multiple of BOUNDARY.