This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add TARGET_GNU_SINCOS target macro
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Jan 2007 16:46:55 -0500
- Subject: Re: [PATCH] Add TARGET_GNU_SINCOS target macro
- References: <Pine.LNX.4.64.0701172244140.3994@zhemvz.fhfr.qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Jan 17, 2007 at 10:45:39PM +0100, Richard Guenther wrote:
>
> This adds a TARGET_GNU_SINCOS target macro to tell whether the target
> has a sincos implementation conforming to GNU.
There are several Linux targets which don't use config/linux.h:
alpha-linux, powerpc*-linux, sparc*-linux.
Could you add the same below TARGET_C99_FUNCTION defines in their headers
too:
find . -name \*.h | xargs grep TARGET_C99_FUNCTIONS.*OPTION_GLIBC
./config/alpha/linux.h:#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
./config/rs6000/linux.h:#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
./config/rs6000/linux64.h:#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
./config/linux.h:#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
./config/sparc/linux.h:#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
./config/sparc/linux64.h:#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
> is present in the runtime library. */
> #define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
>
> + /* Whether we have sincos that follows the GNU extension. */
> + #define TARGET_GNU_SINCOS (OPTION_GLIBC)
> +
> #define TARGET_POSIX_IO
Jakub