www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/04/21/16:02:15

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 <dionne AT cs DOT wisc DOT edu>
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019