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  <ja...@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.

Reply via email to