[committed] hppa: Fix move of FUNCTION_ARG_SIZE to pa.c

Message ID 5A5EAA30.3060705@bell.net
State New
Headers show
Series
  • [committed] hppa: Fix move of FUNCTION_ARG_SIZE to pa.c
Related show

Commit Message

John David Anglin Jan. 17, 2018, 1:43 a.m.
We need to apply CEIL to the case where mode != BLKmode.

Committed to trunk.

Dave
--
John David Anglin  dave.anglin@bell.net
2018-01-16  John David Anglin  <danglin@gcc.gnu.org>

	* config/pa/pa.c (pa_function_arg_size): Apply CEIL to GET_MODE_SIZE
	return value.

Patch

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"