kamaraju kusumanchi wrote: >>> 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? Surely this is exactly the same as the last time. Index: tree-ssa-loop-ivopts.c =================================================================== --- tree-ssa-loop-ivopts.c (revision 141575) +++ tree-ssa-loop-ivopts.c (working copy) @@ -4355,7 +4355,10 @@ static comp_cost iv_ca_cost (struct iv_ca *ivs) { - return (ivs->bad_uses ? infinite_cost : ivs->cost); + if (ivs->bad_uses) + return infinite_cost; + else + return ivs->cost; } /* Returns true if all dependences of CP are among invariants in IVS. */ Andrew. > > raju