From: John David Anglin Date: Tue, 16 Jan 2018 23:59:31 +0000 (+0000) Subject: pa.c (pa_function_arg_size): Apply CEIL to GET_MODE_SIZE return value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b8f47005d3d00992f43c7dcc96fee56884f3cb7;p=gcc.git 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 --- 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"