From 7b8f47005d3d00992f43c7dcc96fee56884f3cb7 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Tue, 16 Jan 2018 23:59:31 +0000 Subject: [PATCH] pa.c (pa_function_arg_size): Apply CEIL to GET_MODE_SIZE return value. * config/pa/pa.c (pa_function_arg_size): Apply CEIL to GET_MODE_SIZE return value. From-SVN: r256768 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66fd97ed2de..80b04b94fb3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-16 John David Anglin + + * config/pa/pa.c (pa_function_arg_size): Apply CEIL to GET_MODE_SIZE + return value. + 2018-01-16 Eric Botcazou * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For an diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 8e7b11aab45..809cc6566c2 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -10842,9 +10842,10 @@ pa_starting_frame_offset (void) HOST_WIDE_INT pa_function_arg_size (machine_mode mode, const_tree type) { - if (mode != BLKmode) - return GET_MODE_SIZE (mode); - return CEIL (int_size_in_bytes (type), UNITS_PER_WORD); + HOST_WIDE_INT size; + + size = mode != BLKmode ? GET_MODE_SIZE (mode) : int_size_in_bytes (type); + return CEIL (size, UNITS_PER_WORD); } #include "gt-pa.h" -- 2.30.2