From 123148b532a990e5fdf956cd563327af1391b2df Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Tue, 12 Jul 2011 14:57:28 +0000 Subject: tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook. * function.c (locate_and_pad_parm): Take it into account. * target.def (function_arg_round_boundary): New hook. * targhooks.c (default_function_arg_round_boundary): New function. * targhooks.h (default_function_arg_round_boundary): Declare. * doc/tm.texi: Regenerate. From-SVN: r176207 --- gcc/doc/tm.texi | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gcc/doc/tm.texi') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index c0648a5..faf8b6c 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4180,9 +4180,9 @@ to pad out an argument with extra space. The value should be of type @code{enum direction}: either @code{upward} to pad above the argument, @code{downward} to pad below, or @code{none} to inhibit padding. -The @emph{amount} of padding is always just enough to reach the next -multiple of @code{TARGET_FUNCTION_ARG_BOUNDARY}; this macro does not -control it. +The @emph{amount} of padding is not controlled by this macro, but by the +target hook @code{TARGET_FUNCTION_ARG_ROUND_BOUNDARY}. It is +always just enough to reach the next multiple of that boundary. This macro has a default definition which is right for most systems. For little-endian machines, the default is to pad upward. For @@ -4215,6 +4215,13 @@ with the specified mode and type. The default hook returns @code{PARM_BOUNDARY} for all arguments. @end deftypefn +@deftypefn {Target Hook} {unsigned int} TARGET_FUNCTION_ARG_ROUND_BOUNDARY (enum machine_mode @var{mode}, const_tree @var{type}) +Normally, the size of an argument is rounded up to @code{PARM_BOUNDARY}, +which is the default value for this hook. You can define this hook to +return a different value if an argument size must be rounded to a larger +value. +@end deftypefn + @defmac FUNCTION_ARG_REGNO_P (@var{regno}) A C expression that is nonzero if @var{regno} is the number of a hard register in which function arguments are sometimes passed. This does -- cgit v1.1