This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Predefine __SIZEOF_{FPREG,FLOAT{80,128}}__ on ia64 (PR target/56540)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]