pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference arguments passed in...
authorJeff Law <law@gcc.gnu.org>
Wed, 22 Feb 1995 05:54:11 +0000 (22:54 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 22 Feb 1995 05:54:11 +0000 (22:54 -0700)
* pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference
arguments passed in registers.

From-SVN: r9026

gcc/config/pa/pa.h

index e69a63a0ffcd5bb700ca2547108eb4855092b2dd..3b5f1324df0a62d3e3a767d5ce6650b1031dcd66 100644 (file)
@@ -1039,6 +1039,10 @@ extern enum cmp_type hppa_branch_type;
                     int arg_size =                                     \
                       FUNCTION_ARG_SIZE (TYPE_MODE (DECL_ARG_TYPE (parm)),\
                                          DECL_ARG_TYPE (parm));        \
+                    /* Passing structs by invisible reference uses     \
+                       one general register.  */                       \
+                    if (arg_size > 2)                                  \
+                      arg_size = 1;                                    \
                     if (arg_size == 2 && i <= 2)                       \
                       {                                                \
                         if (i == 1) i++;                               \