diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2010-06-30 18:10:23 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-06-30 19:10:23 +0100 |
commit | 893d13d526b174c26174ddd5b3aa25226a839711 (patch) | |
tree | 62c0c8c77b5631f0bc02bed0ae0c84ddda3eec91 /gcc | |
parent | d66f54593c67177cb99dddb75feebe94843d77be (diff) | |
download | gcc-893d13d526b174c26174ddd5b3aa25226a839711.zip gcc-893d13d526b174c26174ddd5b3aa25226a839711.tar.gz gcc-893d13d526b174c26174ddd5b3aa25226a839711.tar.bz2 |
target.def (return_pops_args): Use DEFHOOK.
* target.def (return_pops_args): Use DEFHOOK.
* doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
Rename stack-size to size.
* doc/tm.texi: Regenerate.
From-SVN: r161627
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 6 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 6 | ||||
-rw-r--r-- | gcc/target.def | 2 |
4 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 507e12b..5512ffc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -38,6 +38,11 @@ * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook. * doc/tm.texi: Regenerate. + * target.def (return_pops_args): Use DEFHOOK. + * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook. + Rename stack-size to size. + * doc/tm.texi: Regenerate. + 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index fe72fd1..99b4dd4 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -3931,7 +3931,7 @@ suppresses this behavior and causes the parameter to be passed on the stack in its natural location. @end defmac -@deftypefn {Target Hook} TARGET_RETURN_POPS_ARGS (@var{fundecl}, @var{funtype}, @var{stack-size}) +@deftypefn {Target Hook} int TARGET_RETURN_POPS_ARGS (tree @var{fundecl}, tree @var{funtype}, int @var{size}) This target hook returns the number of bytes of its own arguments that a function pops on returning, or 0 if the function pops no arguments and the caller must therefore pop them all after the function returns. @@ -3954,12 +3954,12 @@ by their names. Note that ``library function'' in this context means a function used to perform arithmetic, whose name is known specially in the compiler and was not mentioned in the C code being compiled. -@var{stack-size} is the number of bytes of arguments passed on the +@var{size} is the number of bytes of arguments passed on the stack. If a variable number of bytes is passed, it is zero, and argument popping will always be the responsibility of the calling function. On the VAX, all functions always pop their arguments, so the definition -of this macro is @var{stack-size}. On the 68000, using the standard +of this macro is @var{size}. On the 68000, using the standard calling convention, no functions pop their arguments, so the value of the macro is always 0 in this case. But an alternative calling convention is available in which functions that take a fixed number of diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 6949d1b..a9a2e95 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -3931,7 +3931,7 @@ suppresses this behavior and causes the parameter to be passed on the stack in its natural location. @end defmac -@deftypefn {Target Hook} TARGET_RETURN_POPS_ARGS (@var{fundecl}, @var{funtype}, @var{stack-size}) +@hook TARGET_RETURN_POPS_ARGS This target hook returns the number of bytes of its own arguments that a function pops on returning, or 0 if the function pops no arguments and the caller must therefore pop them all after the function returns. @@ -3954,12 +3954,12 @@ by their names. Note that ``library function'' in this context means a function used to perform arithmetic, whose name is known specially in the compiler and was not mentioned in the C code being compiled. -@var{stack-size} is the number of bytes of arguments passed on the +@var{size} is the number of bytes of arguments passed on the stack. If a variable number of bytes is passed, it is zero, and argument popping will always be the responsibility of the calling function. On the VAX, all functions always pop their arguments, so the definition -of this macro is @var{stack-size}. On the 68000, using the standard +of this macro is @var{size}. On the 68000, using the standard calling convention, no functions pop their arguments, so the value of the macro is always 0 in this case. But an alternative calling convention is available in which functions that take a fixed number of diff --git a/gcc/target.def b/gcc/target.def index a4e5fcd..2bafeca 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -1866,7 +1866,7 @@ DEFHOOK pops on returning, or 0 if the function pops no arguments and the caller must therefore pop them all after the function returns. */ /* ??? tm.texi has no types for the parameters. */ -DEFHOOK_UNDOC +DEFHOOK (return_pops_args, "", int, (tree fundecl, tree funtype, int size), |