Bug 56540 - No __SIZEOF__XXX__ macro for __float128
Summary: No __SIZEOF__XXX__ macro for __float128
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 5.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 16:28 UTC by John Maddock
Modified: 2022-01-09 00:44 UTC (History)
0 users

See Also:
Host:
Target: ia64-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2014-04-25 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Maddock 2013-03-05 16:28:33 UTC
I'm not sure I have the component set right for this... this is possibly a C and C++ compiler driver issue..?

As far as I can tell every builtin type has it's own __SIZEOF__XXX__ macro defined in the preprocessor, which for example makes detecting __int128 support easy via __SIZEOF_INT128__.  However there are no corresponding macros for __float80 and __float128.  I'd like to see __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__ defined when these types are supported by the compiler.
Comment 1 Marc Glisse 2014-04-25 09:23:47 UTC
Author: glisse
Date: Fri Apr 25 09:23:15 2014
New Revision: 209789

URL: http://gcc.gnu.org/viewcvs?rev=209789&root=gcc&view=rev
Log:
2014-04-25  Marc Glisse  <marc.glisse@inria.fr>

	PR preprocessor/56540
	* config/i386/i386-c.c (ix86_target_macros): Define
	__SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386-c.c
Comment 2 Marc Glisse 2014-04-25 09:48:54 UTC
Ideally ia64 would get the same macro, but I am not touching that target.
Comment 3 Jakub Jelinek 2015-04-22 11:58:41 UTC
GCC 5.1 has been released.
Comment 4 Richard Biener 2015-07-16 09:13:10 UTC
GCC 5.2 is being released, adjusting target milestone to 5.3.
Comment 5 Richard Biener 2015-12-04 10:46:28 UTC
GCC 5.3 is being released, adjusting target milestone.
Comment 6 Richard Biener 2016-06-03 10:06:18 UTC
GCC 5.4 is being released, adjusting target milestone.
Comment 7 Jakub Jelinek 2018-03-02 16:17:50 UTC
Author: jakub
Date: Fri Mar  2 16:17:18 2018
New Revision: 258138

URL: https://gcc.gnu.org/viewcvs?rev=258138&root=gcc&view=rev
Log:
	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.

Added:
    trunk/gcc/testsuite/gcc.target/ia64/pr56540.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/ia64/ia64.h
    trunk/gcc/testsuite/ChangeLog
Comment 8 Jakub Jelinek 2018-03-02 16:18:38 UTC
Author: jakub
Date: Fri Mar  2 16:18:06 2018
New Revision: 258139

URL: https://gcc.gnu.org/viewcvs?rev=258139&root=gcc&view=rev
Log:
	PR target/56540
	* config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Predefine
	__SIZEOF_128__ macro if HPUX_LONG_DOUBLE_LIBRARY.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/pa.h