]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass to built...
authorCarlos O'Donell <carlos@codesourcery.com>
Tue, 13 Dec 2005 05:12:32 +0000 (05:12 +0000)
committerCarlos O'Donell <carlos@gcc.gnu.org>
Tue, 13 Dec 2005 05:12:32 +0000 (05:12 +0000)
commit264c41eda5b1d3b073053da88f7e757635269cc3
tree2fbb2e1fb7c42f4f00f870ff2ee039017a5bdcaf
parent65b1344e310ec930d82b17551ff5cd63e7724761
c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass to builtin_define_with_hex_fp_value.

2005-12-13  Carlos O'Donell <carlos@codesourcery.com>

gcc/

* c-cppbuiltin.c (builtin_define_float_constants): Add
fp_cast parameter, pass to builtin_define_with_hex_fp_value.
Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
(builtin_define_with_hex_fp_value): Use fp_cast when building macro.
(c_cpp_builtins): If flag_single_precision_constant then set fp_cast
to "((double)%sL)" otherwise "%s".

gcc/testsuite/

* gcc.dg/single-precision-constant.c: New test.

libstdc++-v3/

* include/std/std_limits.h (struct numeric_limits):
Use __DBL_HAS_DENORM__, __FLT_HAS_DENORM__, __LDBL_HAS_DENORM__.

From-SVN: r108458
gcc/ChangeLog
gcc/c-cppbuiltin.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/single-precision-constant.c [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_limits.h