GCSE bug

Daniel Jacobowitz dmj@andrew.cmu.edu
Fri Sep 18 07:33:00 GMT 1998


I've stumbled on a bug in the scheduler as of egcs 1.1 on both powerpc
and intel platforms.   The original program in which I saw it was mpack
( ftp://ftp.andrew.cmu.edu/pub/mpack ); a shorter test case (courtesy of
Richard Braakman, dark@debian.org) is appended, and some scripts and
test files to illustrate the problem are at: 
http://drow.res.cmu.edu/~drow/mpack-test-case.tgz

bash-2.01$ gcc -v
Reading specs from /usr/lib/gcc-lib/powerpc-linux/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)

The problem appears whenever -fgcse is used, and disappears at any
optimization level with -fno-gcse.

The egcs was built with:

mkdir builddir; cd builddir
../configure --prefix=/usr --enable-threads --enable-shared -v
make -C builddir bootstrap CC='gcc -DEGCS' LDFLAGS=-s CFLAGS=-DEGCS
	BOOT_CFLAGS='-DEGCS -O2'

(the -DEGCS is for gpc).


Daniel Jacobowitz
dan@debian.org


More information about the Gcc-bugs mailing list