Date: Wed, 28 Apr 1999 13:22:22 +0200 (DFT) From: Ulrich Roglin To: pgcc AT delorie DOT com Subject: pgcc-1.1.3 misoptimizes with -fcompare-elim Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: pgcc AT delorie DOT com The following program gets misoptimized with -O2 -fcompare-elim by a bootstraped pgcc-1.1.3 on a Debian 2.1 Linux system. It compiles OK with just -O2 or if you omit static in the source. main() { static int a[1] = { 11 }; int x=0; while (x<10) { x += a[0]; } } Uli