aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rs6000/rs6000.c')
-rw-r--r--gcc/config/rs6000/rs6000.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index f8a10b6cf4f..34964a50fba 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -1181,10 +1181,8 @@ function_arg_padding (mode, type)
enum machine_mode mode;
tree type;
{
- if (type && TREE_CODE (type) == RECORD_TYPE)
- {
- return upward;
- }
+ if (type != 0 && AGGREGATE_TYPE_P (type))
+ return upward;
/* This is the default definition. */
return (! BYTES_BIG_ENDIAN