aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2011-05-04 12:01:21 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2011-05-04 12:01:21 +0000
commit5e617be801a07a59e464005f9e1bac1959b6cf56 (patch)
tree8900c45044a2c5fcbab68008ebff0cf2f9c08fa3 /gcc/doc
parent23ee028b82aaf3615dca2639a3443fcb216846cc (diff)
downloadgcc-5e617be801a07a59e464005f9e1bac1959b6cf56.zip
gcc-5e617be801a07a59e464005f9e1bac1959b6cf56.tar.gz
gcc-5e617be801a07a59e464005f9e1bac1959b6cf56.tar.bz2
calls.c (emit_library_call_value_1): Invoke promote_function_mode hook on libcall arguments.
2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * calls.c (emit_library_call_value_1): Invoke promote_function_mode hook on libcall arguments. * explow.c (promote_function_mode, promote_mode): Handle TYPE argument being NULL. * targhooks.c (default_promote_function_mode): Lisewise. * config/s390/s390.c (s390_promote_function_mode): Likewise. * config/sparc/sparc.c (sparc_promote_function_mode): Likewise. * doc/tm.texi: Document that TYPE argument might be NULL. From-SVN: r173371
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/tm.texi2
-rw-r--r--gcc/doc/tm.texi.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 7351e83..874a223 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -962,6 +962,8 @@ which an incoming parameter is copied, or the outgoing result is computed;
then the hook should return the same mode as @code{promote_mode}, though
the signedness may be different.
+@var{type} can be NULL when promoting function arguments of libcalls.
+
The default is to not promote arguments and return values. You can
also define the hook to @code{default_promote_function_mode_always_promote}
if you would like to apply the same rules given by @code{PROMOTE_MODE}.
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 45d5982..be84e4e 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -952,6 +952,8 @@ which an incoming parameter is copied, or the outgoing result is computed;
then the hook should return the same mode as @code{promote_mode}, though
the signedness may be different.
+@var{type} can be NULL when promoting function arguments of libcalls.
+
The default is to not promote arguments and return values. You can
also define the hook to @code{default_promote_function_mode_always_promote}
if you would like to apply the same rules given by @code{PROMOTE_MODE}.