This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Predefine __SIZEOF_{FPREG,FLOAT{80,128}}__ on ia64 (PR target/56540)
- From: Jeff Law <law at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>, Jim Wilson <jimw at sifive dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Marc Glisse <marc dot glisse at inria dot fr>
- Date: Fri, 2 Mar 2018 09:09:10 -0700
- Subject: Re: [PATCH] Predefine __SIZEOF_{FPREG,FLOAT{80,128}}__ on ia64 (PR target/56540)
- Authentication-results: sourceware.org; auth=none
- References: <20180302150409.GE5867@tucnak>
On 03/02/2018 08:04 AM, Jakub Jelinek wrote:
> Hi!
>
> GCC predefines __SIZEOF_*__ macros for the types it provides, so that
> 1) one can easily test if those types are available
> 2) can use it even in places where sizeof is not usable, like preprocessor
> conditionals
> Unfortunately, this isn't done for target types that the middle-end doesn't
> know about. On x86 __SIZEOF_FLOAT128__=16 and __SIZEOF_FLOAT80__={16,12}
> are already predefined. For consistency and above reasons it would be nice
> to do the same on ia64, hppa and powerpc* too.
>
> Tested with a cross to ia64 on the testcase, ok for trunk?
>
> 2018-03-02 Jakub Jelinek <jakub@redhat.com>
>
> PR target/56540
> * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
> __SIZEOF_{FPREG,FLOAT{80,128}}__ macros.
>
> * gcc.target/ia64/pr56540.c: New test.
OK.
jeff