From 0ed5f250a191a06248db5bd198e4d74f59a024ed Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 21 Feb 1995 22:54:11 -0700 Subject: [PATCH] pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference arguments passed in registers. * pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference arguments passed in registers. From-SVN: r9026 --- gcc/config/pa/pa.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index e69a63a0ffc..3b5f1324df0 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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++; \ -- 2.30.2