On Wed, 11 Apr 2001, Frank Heckenbach wrote:
Rather than that, we've got to figure out why it doesn't work yet. In gpc.c I do an #ifdef GCC_2_95_3. As I said, it should be defined in gcc-version.h which is automatically created in the build directory during configuration. (That's also where ECGS95 will be defined for the respective GCC versions, but ECGS95 is not relevant to this discussion.)
So, the first step would be to check if GCC_2_95_3 is defined there. If so, then you may just need to rebuild gpc.o (remove the object file, do a make clean, or build from scratch ...).
Otherwise, try to find out what's going wrong in config-lang.in (which is called from configure). The code in lines 35-37 should set the define. You may want to add some debugging echo's to show the values of $version and $version_string when running configure. This might give you a hint why the check fails and how to correct it.
I see 2 problems with update to gpc-20010409:
1) #ifdef GPC_2_95_3 in gpc.c is placed before any #include statement (so it's undefined). Moving it after #include statements fixes the problem
2) Testing for exactly 2.95.3 in make-lang.in is not correct. Perhaps we should test for 2.95.[3-9] as current version in GCC_2_95 branch is already 2.95.3
Andris