My code use DBL_MIN with warning option "-Wold-style-cast -Werror". But I found DBL_MIN definition has changed in gcc4.5.0 When use "./cpp -dM /dev/null", I got : #define __DBL_MIN__ ((double)2.22507385850720138309e-308L) Why gcc use old style cast in macro?
+ /* Cast the double precision constants. This is needed when single + precision constants are specified or when pragma FLOAT_CONST_DECIMAL64 + is used. The correct result is computed by the compiler when using + macros that include a cast. */
Author: froydnj Date: Mon Nov 15 15:24:31 2010 New Revision: 166756 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166756 Log: gcc/c-family/ PR preprocessor/45038 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ dialects. gcc/testsuite/ PR preprocessor/45038 * g++.dg/pr45038.C: New test. Added: trunk/gcc/testsuite/g++.dg/pr45038.C Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-cppbuiltin.c trunk/gcc/testsuite/ChangeLog
Fixed on trunk.