Re: "../.././gcc/c-common.c", line 2259: invalid token: short_fract_type_no...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Yes, you are right! I will continue once the __LONG_LONG_MAX issue
>> gets resolved.
>
> You just need a way to define CAP_INFINITY.  INTTYPE_MAXIMUM(HOST_WIDEST_INT)
> ought to do it.
>
> Andrew.

That fixed it. Here is the patch...

> cat ../../unZipped/gcc-4.4-20081107/patches/patch4.txt
--- mcf.c.orig  2008-11-12 08:22:00.553414000 -0500
+++ mcf.c       2008-11-12 08:23:30.202269000 -0500
@@ -56,7 +56,7 @@
 #include "profile.h"

 /* CAP_INFINITY: Constant to represent infinite capacity.  */
-#define CAP_INFINITY __LONG_LONG_MAX__
+#define CAP_INFINITY INTTYPE_MAXIMUM(HOST_WIDEST_INT)

 /* COST FUNCTION.  */
 #define K_POS(b)        ((b))


Now the compilation stops at

cc -c  -g -DIN_GCC    -DHAVE_CONFIG_H -I. -I.
-I../../../unZipped/gcc-4.4-20081107/gcc
-I../../../unZipped/gcc-4.4-20081107/gcc/. -I../../..
/unZipped/gcc-4.4-20081107/gcc/../include -I./../intl
-I../../../unZipped/gcc-4.4-20081107/gcc/../libcpp/include
-I../../../unZipped/gcc-4.
4-20081107/gcc/../libdecnumber
-I../../../unZipped/gcc-4.4-20081107/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/home/kkusuman/software/my
root/include ../../../unZipped/gcc-4.4-20081107/gcc/tree-ssa-loop-ivopts.c
-o tree-ssa-loop-ivopts.o
"../../../unZipped/gcc-4.4-20081107/gcc/tree-ssa-loop-ivopts.c", line
4358: operands have incompatible types:
         const struct  {unsigned int cost, unsigned int complexity}
":" struct  {unsigned int cost, unsigned int complexity}
cc: acomp failed for
../../../unZipped/gcc-4.4-20081107/gcc/tree-ssa-loop-ivopts.c
make[3]: *** [tree-ssa-loop-ivopts.o] Error 2
make[3]: Leaving directory
`/home/kkusuman/software/compileHere/gcc-4.4-20081107/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/home/kkusuman/software/compileHere/gcc-4.4-20081107'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/home/kkusuman/software/compileHere/gcc-4.4-20081107'
make: *** [all] Error 2


Either I have to remove "const" from somewhere or I have to add it
somewhere. Any ideas?

raju

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux