diff options
author | Richard Guenther <rguenther@suse.de> | 2007-01-19 11:06:56 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-01-19 11:06:56 +0000 |
commit | 006339cde4079778a003f75127e5bc7fbcde256d (patch) | |
tree | 9b2970cfe38e303f9d2cf7b3d12347e9babb016e /gcc/doc | |
parent | 8ef4f42c93e00dc873de984525712f2aad5b7036 (diff) | |
download | gcc-006339cde4079778a003f75127e5bc7fbcde256d.tar.gz |
tm.texi (TARGET_HAS_SINCOS): Document new target macro.
2007-01-19 Richard Guenther <rguenther@suse.de>
* doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
* defaults.h (TARGET_HAS_SINCOS): Default to off.
* config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
* config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
* config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
* config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
* config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
* config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
From-SVN: r120952
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index ad707798a8f..33905757a50 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5061,6 +5061,18 @@ number of existing systems lacks support for these functions in the runtime so they needs this macro to be redefined to 0. @end defmac +@cindex sincos math function, implicit usage +@defmac TARGET_HAS_SINCOS +When this macro is nonzero, GCC will implicitly optimize calls to @code{sin} +and @code{cos} with the same argument to a call to @code{sincos}. The +default is zero. The target has to provide the following functions: +@smallexample +void sincos(double x, double *sin, double *cos); +void sincosf(float x, float *sin, float *cos); +void sincosl(long double x, long double *sin, long double *cos); +@end smallexample +@end defmac + @defmac NEXT_OBJC_RUNTIME Define this macro to generate code for Objective-C message sending using the calling convention of the NeXT system. This calling convention |