From 5935a7c495162f3d03c13336492f2cc434339074 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 6 Mar 2017 22:48:53 +0000 Subject: [PATCH] PR target 77850 PR target 77850 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and vector types. From-SVN: r245931 --- gcc/ChangeLog | 6 ++++++ gcc/config/pa/pa-64.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a13d73ae356..bd424cbdf58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-03-06 John David Anglin + + PR target 77850 + * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and + vector types. + 2017-03-06 Vladimir Makarov PR rtl-optimization/79571 diff --git a/gcc/config/pa/pa-64.h b/gcc/config/pa/pa-64.h index 17f3571c6d5..1d08b28e76c 100644 --- a/gcc/config/pa/pa-64.h +++ b/gcc/config/pa/pa-64.h @@ -83,7 +83,10 @@ along with GCC; see the file COPYING3. If not see arguments are padded down when BYTES_BIG_ENDIAN is true. We don't want aggregates padded down. */ -#define PAD_VARARGS_DOWN (!AGGREGATE_TYPE_P (type)) +#define PAD_VARARGS_DOWN \ + (!AGGREGATE_TYPE_P (type) \ + && TREE_CODE (type) != COMPLEX_TYPE \ + && TREE_CODE (type) != VECTOR_TYPE) /* In the PA architecture, it is not possible to directly move data between GENERAL_REGS and FP_REGS. On the 32-bit port, we use the -- 2.30.2