Bug regarding macro redefinition of float constants (DBL_MAX,DBL_MIN,FLT_MAX,FLT_MIN) on Solaris 2.6 (egcs 1.1b)??
Rick Flower
Rick.Flower@trw.com
Mon Oct 5 15:34:00 GMT 1998
Has anyone seen the following output from including <limits.h>?
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -Wall -c -fPIC -DPIC garray.c
In file included from /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/limits.h:117,
from /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/syslimits.h:7,
from /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/limits.h:11,
from glib.h:66,
from garray.c:20:
/usr/include/limits.h:197: warning: `DBL_MAX' redefined
/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/float.h:63: warning: this is the location of the previous definition
/usr/include/limits.h:199: warning: `DBL_MIN' redefined
/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/float.h:54: warning: this is the location of the previous definition
/usr/include/limits.h:202: warning: `FLT_MAX' redefined
/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/float.h:35: warning: this is the location of the previous definition
/usr/include/limits.h:203: warning: `FLT_MIN' redefined
/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/float.h:26: warning: this is the location of the previous definition
I'm getting these warnings from a few packages that include limits.h
and after poking around a bit, I'm not really sure how this whole
problem is getting started. Any comments are appreciated!
-- Rick
More information about the Gcc-bugs
mailing list