This is a patch file for "mpptools" 1.15v. It fixes a "hang" and other problems that occur with "gcc4". --- sv7.old/config.c +++ sv7/config.c @@ -157,6 +157,7 @@ long m; FILE* fp = fopen ( "config.h", "w" ); int endian; + long mcounter = 0L; if ( fp == NULL ) { fprintf ( stderr, "config: Can't write 'config.h'\n"); @@ -236,6 +237,7 @@ flag |= test_round_32 ( -m - 0.499 ); flag |= test_round_32 ( -m ); flag |= test_round_32 ( -m + 0.499 ); + if ((mcounter++ >= 719300) || flag) break; } if ( flag == 0 ) fprintf ( fp, "#define HAVE_IEEE754_DOUBLE\n" ); --- sv7.old/mppenc.c +++ sv7/mppenc.c @@ -38,8 +38,8 @@ float Bandwidth = 0.; int PredictionBands = 0; int CombPenalities = -1; -extern float KBD1 = 2; -extern float KBD2 = -1.; +float KBD1 = 2; +float KBD2 = -1.0; int DisplayUpdateTime = 1; int APE_Version = 2000; int LowDelay = 0; @@ -1863,8 +1863,7 @@ return 0; } - -static void +void OverdriveReport ( void ) { if ( Overflows > 0 ) { // report internal clippings