Sender: dionne AT cs DOT wisc DOT edu Message-ID: <371E2E3B.DBD067E4@cs.wisc.edu> Date: Wed, 21 Apr 1999 14:59:55 -0500 From: Marc Dionne Organization: University of Wisconsin X-Mailer: Mozilla 4.51 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: pgcc AT delorie DOT com Subject: Small program that exhibits bug Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: pgcc AT delorie DOT com Just in case it's useful to the developers, or for the curiosity and enjoyment of others, here's a very small bit of code that pgcc 1.1.2 can't compile with -O2: $ more bad.c b() { long long l; int i; if (l | i) i=0; } $ make /s/egcs-1.1.2/src/sunx86_56/gcc/stage1/xgcc -B/s/egcs-1.1.2/src/sunx86_56/gcc/stage1/ -O2 -c bad.c /s/egcs-1.1.2/src/pgcc-1.1.2/gcc/sched.c:5296: Internal compiler error in function update_flow_info make: *** [bad.o] Error 1 Note that it uses the stage 1 compiler (compiled with pgcc 1.1.1), since of course the build of the stage 2 compiler fails. This is on Solaris 2.6 . Cheers, Marc