🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #101

gcc 1.34 vs. `tcsh'

#101
From: Greg Earle
Date: Fri, 16 Jun 1989 05:29
40 lines
2089 bytes
I built `tcsh' on my Sun-3/160 (SunOS 4.0.1), using `-O -fstrength-reduce
-finline-functions -fcombine-regs'.  All seemed to be well, until I noticed
the following:

When one uses ^D to show all the possible completions of a command, the
expected amount of screen output (in terms of lines) is emitted, but nothing
is displayed on the screen (i.e., as if one had set `-echo' before the
command).  This same problem does not show up with a `tcsh' built using `cc'
with `-O2'.  Let me show an example:

Built with `cc -O2':
poseur:1:228 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool
cron/           lpd.lock        mqueue/         secretmail/     uucppublic/
lpd/            mail/           rwho/           uucp/
poseur:1:229 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool/	(hit ^D here:)
cron/       lpd.lock    mqueue/     secretmail/ uucppublic/
lpd/        mail/       rwho/       uucp/
poseur:2:21 [ /usr/share/src/sun/bin/tcsh ] # ls /usr/spool/

This is the normal behavior.
Built with `gcc -O -fstrength-reduce -finline-functions -fcombine-regs':
poseur:1:231 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool
cron/           lpd.lock        mqueue/         secretmail/     uucppublic/
lpd/            mail/           rwho/           uucp/
poseur:1:232 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool/


poseur:1:232 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool/

The correct number of lines is there, but no screen output is seen!  Weird ...

Any ideas?  I haven't even the vaguest idea where to start looking to
try and narrow this down; I suspect a terminal mode is getting smashed 
somewhere, somehow ...

	- Greg Earle
	  Sun Microsystems, Inc.
	  JPL on-site Software Support
	  earle@Sun.COM
Technical Details
Message-ID: <8906160529.AA07791@poseur.West.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!SUN.COM!earle

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!SUN.COM!earle
From: earle@SUN.COM (Greg Earle)
Newsgroups: gnu.gcc.bug
Subject: gcc 1.34 vs. `tcsh'
Message-ID: <8906160529.AA07791@poseur.West.Sun.COM>
Date: 16 Jun 89 05:29:40 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 40