This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
glimits.h is not compatible with -traditional
- To: gcc-bugs at gcc dot gnu dot org
- Subject: glimits.h is not compatible with -traditional
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 31 Aug 2000 16:14:01 -0400 (EDT)
In building gcc, I noticed the following warning under hpux 10.20:
stage1/xgcc -Bstage1/ -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -c -DIN_GCC -g -O3 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/../include ../../gcc/dwarf2out.c
In file included from ../../gcc/dwarf2out.c:56:
../../include/md5.h:56:6: warning: traditional C rejects the `U' suffix
../../include/md5.h:56:18: warning: traditional C rejects the `U' suffix
The warning results from defines in glimits.h that are not compatible with
-traditional. For example,
#define UINT_MAX (INT_MAX * 2U + 1)
There are also various C99 defines in glimits.h which are not compatible
with -traditional (long long stuff). I think these need to be surrounded
by appropriate ifdef __STDC__'s.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)