[comp.windows.x] bug in xfed with gcc -O -fstrength-reduce

brossard@litsun.epfl.ch ("", Alain Brossard) (07/04/90)

RFC-822-Headers:
Received: from litsun.epfl.ch by SIC.Epfl.CH via INTERNET ; Wed, 4 Jul 90 11:56:52 N

==================
	I found that xfed compiled with gcc 1.37.1 on a Sun 3 will
core dump due to a bug in gcc if compiled with the options
-O -fstrength-reduce.  The problem is in the file parse.y where there
is a loop
    for (i=0; i<nrows; i++)
	charp->rows[i] = bits[i];
   the index of bits never gets incremented by the code generated so
xfed core dumps.

				Alain Brossard
				brossard@litsun.epfl.ch

jimf@SABER.COM (07/05/90)

|	I found that xfed compiled with gcc 1.37.1 on a Sun 3 will
|core dump due to a bug in gcc if compiled with the options
|-O -fstrength-reduce.

This is a known bug in gcc 1.37; it will only appear if both -O and
-fstrength-reduce are specified (ie remove the -f and it works).  It
was reported to GNU quite some time ago.  This bug does not exist in
gcc 1.36.

jim frost
saber software
jimf@saber.com