We need to apply CEIL to the case where mode != BLKmode.
Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net
2018-01-16 John David Anglin <dang...@gcc.gnu.org> * config/pa/pa.c (pa_function_arg_size): Apply CEIL to GET_MODE_SIZE return value. Index: config/pa/pa.c =================================================================== --- config/pa/pa.c (revision 256744) +++ config/pa/pa.c (working copy) @@ -10842,9 +10842,10 @@ 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"