From: CSBVAX::MRGATE!info-gcc-request@prep.ai.mit.edu@SMTP 26-AUG-1988 21:44 To: ARISIA::EVERHART Subj: Re: X.V11R2 xterm all foreground color when compiled with GCC 1.26 Received: from TUT.CIS.OHIO-STATE.EDU by prep.ai.mit.edu; Fri, 26 Aug 88 19:04:32 EST Received: by tut.cis.ohio-state.edu (5.54/2.880825) id AA10338; Fri, 26 Aug 88 20:24:36 EDT Received: from USENET by tut.cis.ohio-state.edu with netnews for info-gcc@prep.ai.mit.edu (info-gcc@prep.ai.mit.edu) (contact usenet@tut.cis.ohio-state.edu if you have questions) Date: 26 Aug 88 23:14:11 GMT From: spaf@purdue.edu (Gene Spafford) Organization: Department of Computer Science, Purdue University Subject: Re: X.V11R2 xterm all foreground color when compiled with GCC 1.26 Message-Id: <4739@medusa.cs.purdue.edu> References: <20830@tut.cis.ohio-state.edu> Sender: info-gcc-request@prep.ai.mit.edu To: info-gcc@prep.ai.mit.edu In article <20830@tut.cis.ohio-state.edu> bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) writes: >When I compile xterm with gcc, everything is in the foreground color - >that is, I get a solid black window. Compiled with the Sun cc, all is >well. I see this effect with none of the other clients. > >What did I miss? You must have missed my postings on this in comp.windows.x: Subject: Speedups for X11.2 Xsun Summary: significant speedups, may work for other machines too [...some introductory text deleted] There are a few important things to do when compiling with gcc: [...some note about gcc 1.22 omitted] 3) You need to compile server/os/4.2bsd/oscolor.c with the Sun-cc compiler, or else you need to recompile and link the dbm library into the server (remember to remove the "-ldbm" from the Makefile in the server directory, too). The GNU compiler handles functions returning structures differently than pcc-based compilers, and "oscolor.c" uses the DBM "fetch" function to get items from a database. The distinctive symptom of forgetting to do this on monochrome is that your xterm windows may be all black or all white, depending on normal preference, and color monitors will be straight B/W. If you compile any of the clients, you may also need to use "-fwriteable-strings" to get around some sloppy coding, notably in xterm. Within few weeks we may post a complete set of diffs for compiling all the libraries and clients using all the gcc optimizations. Mostly these have required cleaning up some constant placement and code ordering. Compiling them with gcc doesn't make a major difference, in most cases, however. [...other notes on speedups omitted.] -- Gene Spafford NSF/Purdue/U of Florida Software Engineering Research Center, Dept. of Computer Sciences, Purdue University, W. Lafayette IN 47907-2004 Internet: spaf@cs.purdue.edu uucp: ...!{decwrl,gatech,ucbvax}!purdue!spaf