diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-07-12 14:57:28 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-07-12 14:57:28 +0000 |
commit | 123148b532a990e5fdf956cd563327af1391b2df (patch) | |
tree | 1836524298f4090e69415cd574678b08885fc75a /gcc/doc/tm.texi | |
parent | b7a83ad8eb8282676f1431f288718d08253a2739 (diff) | |
download | gcc-123148b532a990e5fdf956cd563327af1391b2df.zip gcc-123148b532a990e5fdf956cd563327af1391b2df.tar.gz gcc-123148b532a990e5fdf956cd563327af1391b2df.tar.bz2 |
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
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 13 |
1 files changed, 10 insertions, 3 deletions
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 |