This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
followup Re: could be a library problem. INT_MAX
- To: gcc-bugs at gcc dot gnu dot org
- Subject: followup Re: could be a library problem. INT_MAX
- From: "David L. Nicol" <david at kasey dot umkc dot edu>
- Date: Wed, 13 Jun 2001 16:06:09 -0500
- Organization: University of Missouri - Kansas City supercomputing infrastructure
gcc -c -DIN_GCC -g -O2 -DHAVE_CONFIG_H -I. -I../../gcc-2.95.3/gcc
-I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include
../../gcc-2.95.3/gcc/genattrtab.c
../../gcc-2.95.3/gcc/genattrtab.c: In function `max_attr_value':
../../gcc-2.95.3/gcc/genattrtab.c:4733: `INT_MAX' undeclared (first use in
this function)
../../gcc-2.95.3/gcc/genattrtab.c:4733: (Each undeclared identifier is
reported only once
../../gcc-2.95.3/gcc/genattrtab.c:4733: for each function it appears in.)
make[1]: *** [genattrtab.o] Error 1
make[1]: Leaving directory `/home/david/src/gcc/gcc-2.95.3_objdir/gcc'
make: *** [all-gcc] Error 2
[david@littleroo gcc-2.95.3_objdir]$
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Here is a patch:
[david@littleroo gcc-2.95.3_objdir]$ diff -U3
../pristine/gcc-2.95.3/gcc/genattrtab.c .././gcc-2.95.3/gcc/genattrtab.c
--- ../pristine/gcc-2.95.3/gcc/genattrtab.c Fri Apr 16 14:52:21 1999
+++ .././gcc-2.95.3/gcc/genattrtab.c Wed Jun 13 16:02:43 2001
@@ -108,6 +108,10 @@
/usr/include/sys/stdtypes.h on Sun OS 4.x. */
#include "obstack.h"
+
+/* needed for INT_MAX */
+#include "glimits.h"
+
static struct obstack obstack, obstack1, obstack2;
struct obstack *rtl_obstack = &obstack;
struct obstack *hash_obstack = &obstack1;
--
David Nicol 816.235.1187
Signature closed for repaving