The Decimal Floating Point (DFP) Technical Report (TR) added DFP versions
of HUGE_VAL to <math.h>. They are missing in (at least) gcc 4.3.2-7.
/* DFP TR 24732 == WG14 / N1176, N1312 */
#define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP
*/
#include <math.h> /* HUGE_VAL_D* */
_Decimal32 d32 = HUGE_VAL_D32;
_Decimal64 d64 = HUGE_VAL_D64;
_Decimal128 d128 = HUGE_VAL_D128;
gets:
test1.c:5: warning: ISO C does not support decimal floating point
test1.c:5: error: 'HUGE_VAL_D32' undeclared here (not in a function)
test1.c:6: warning: ISO C does not support decimal floating point
test1.c:6: error: 'HUGE_VAL_D64' undeclared here (not in a function)
test1.c:7: warning: ISO C does not support decimal floating point
test1.c:7: error: 'HUGE_VAL_D128' undeclared here (not in a function)
Janis asked to be CCed on DFP bugs.
--
Summary: HUGE_VAL_D32, HUGE_VAL_D64, HUGE_VAL_D128 missing from
<math.h>
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tydeman at tybor dot com
GCC host triplet: 4.3.2
GCC target triplet: 4.3.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39031