From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from archone.tamu.edu ([128.194.53.42]) by hawkwind.utcs.toronto.edu with SMTP id <2825>; Fri, 27 Nov 1992 12:00:01 -0500 Received: from faui33.informatik.uni-erlangen.de ([131.188.43.2]) by archone.tamu.edu with SMTP id <45316>; Fri, 27 Nov 1992 10:59:46 -0600 Received: from faui30t.informatik.uni-erlangen.de by immd3.informatik.uni-erlangen.de with SMTP (5.64+/7.2b-FAU) id AA18197; Fri, 27 Nov 92 17:59:23 +0100 From: Stefan Dalibor Message-Id: <9211271659.AA18197@faui33.informatik.uni-erlangen.de> Date: Fri, 27 Nov 1992 12:01:52 -0500 To: rc@archone.tamu.edu Subject: gcc-2.3.1 -O2 corrupts rc? Hello, interested in finding The Ultimate Shell I felt that I should have a look at rc; I copied the sources for version 1.4 from archone.tamu.edu, compiled it with gcc-2.3.1. Compilation made no problems (except warnings: proto.h:49: warning: conflicting types for built-in function `memcpy' proto.h:49: warning: type mismatch with previous external decl :0: warning: previous external decl of `memcpy' which disappeared after removing the forward declaration of memcpy from proto.h). But: make trip failed if compiled with option -O2 (all available optimizations turned on): % make trip ./rc -p < trip.rc tripping ./rc . . . . (output from successful tests deleted) . . . . trip took a wrong turn: match trip complete % On the other hand, trip.rc completed successfully when rc was compiled with: - gcc-2.2.2 -O2 - gcc-2.3.1 -O - cc -Qpath /local/lib/unproto -O[234] -I/local/lib/unproto -Dconst= -Dvolatile= where unproto is a package converting ANSI-C to K&R-C by Wietse Venema (got it from ftp.win.tue.nl). Has anybody of you experienced the same? Is this a known bug of gcc-2.3.1 (and if, has it been reported to GNU)? Or is it possible that I did something wrong during the installation? Please e-mail to me, as I'm unsubscribed to this list (I still don't know whether I'll like rc, who likes shells at all... :-) P.S. Browsing through the rc-list-file that came with the distribution I have to suppose that the author of rc gave up working on it; archone.tamu.edu seems to have ceased ftp-service. Is there a place where fixes to rc are archived or who (if anybody) maintains rc now? Thanks in advance, Stefan ---------------------------------------------------- Stefan Dalibor Lehrstuhl fuer Rechnerstrukturen (IMMD III) Friedrich-Alexander-Universitaet Erlangen-Nuernberg Erlangen, Germany e-mail: dalibor@immd3.informatik.uni-erlangen.de