OSDN Git Service

2005-12-13 Carlos O'Donell <carlos@codesourcery.com>
authorcarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2005 05:12:32 +0000 (05:12 +0000)
committercarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2005 05:12:32 +0000 (05:12 +0000)
commit6e24d2a7cfd1fc5190a77f34b75594c2ce92627f
tree2fbb2e1fb7c42f4f00f870ff2ee039017a5bdcaf
parente6025d4ca16fe7829ffb4ee88953e6c1bc676851
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__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108458 138bc75d-0d04-0410-961f-82ee72b054a4
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