| www.delorie.com/archives/browse.cgi | search |
| Date: | Wed, 28 Apr 1999 13:22:22 +0200 (DFT) |
| From: | Ulrich Roglin <roglin AT swh600 DOT langen DOT bull DOT de> |
| To: | pgcc AT delorie DOT com |
| Subject: | pgcc-1.1.3 misoptimizes with -fcompare-elim |
| Message-Id: | <Pine.A32.3.90.990428113051.57343B-100000@swh600.langen.bull.de> |
| Mime-Version: | 1.0 |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |