This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

followup Re: could be a library problem. INT_MAX



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]