Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!eliot!janm From: janm@eliot.UUCP (Jan Morales/Development) Newsgroups: comp.sys.hp Subject: Re: Optimizer bug in cc(1) on HP9000/835 Keywords: Internal error Message-ID: <550@eliot.UUCP> Date: 20 Sep 90 15:09:59 GMT References: <1990Sep19.210628.10847@nmt.edu> Sender: root@eliot.UUCP Reply-To: janm@eliot.UUCP (Jan Morales/Development) Organization: UNITECH Software, Inc., Reston, VA Lines: 34 I was not able to reproduce this bug on my HP 9000/345 running HP-UX 6.5. Maybe the 7.0 cc contains "improvements" over 6.5. :-) Transcript follows sig. -- Jan Morales E-mail: uunet!eliot!janm UNITECH Software, Inc. Phone: (703) 264-3301 1800 Alexander Bell Dr., Ste. 101 Reston, VA 22091 U.S.A. ----------------------------------------------------------------------------- % cat ccbug.c main() { char *p; int i; i = 0; *(p = i - i); } % cc -v -O ccbug.c ccbug.c: /lib/cpp ccbug.c /tmp/ctm4DAAa02322 /lib/cpass1 -Yo /tmp/ctm4DAAa02322 /tmp/ctm1AAAa02322 "ccbug.c", line 7: warning: incorrect combination of pointer and integer, op = /lib/c1 /tmp/ctm1AAAa02322 /tmp/ctm2BAAa02322 /lib/cpass2 /tmp/ctm2BAAa02322 /tmp/ctm5EAAa02322 /lib/c220 /tmp/ctm5EAAa02322 /tmp/ctm3CAAa02322 /bin/as20 -o ccbug.o /tmp/ctm3CAAa02322 /bin/ld /lib/crt0.o ccbug.o -x -lc % ls -l a.out -rwxr-xr-x 1 janm devlpmt 5102 Sep 20 10:44 a.out %