Article View: gnu.gcc.bug
Article #1092README.X11 (gcc 2.2.2) overzealous in optimizing some objects
From: Jim Mattson
Date: Tue, 08 Sep 1992 20:33
Date: Tue, 08 Sep 1992 20:33
31 lines
1579 bytes
1579 bytes
[Sun-4/260, SunOS 4.1.2, cg2 framebuffer, X11R5 patch level 17] The patches included for compiling X11R5 with gcc 2.2.2 are a little overzealous for optimizing mit/server/ddx/sun/sunCG2[CM].c. With -O2, a few stores to the CG2 csr get optimized out, causing colormap brain-damage in the case of sunCG2C.c, and possibly causing some problems with sunCG2M.c as well (though I've never tried it). I considered adding volatile keywords to the appropriate variable declarations, but time pressures got the best of me. Here's an Imakefile patch that can go in with the rest of them in README.X11. (It compiles these two modules with -fvolatile when using gcc 2.x.) --jim *** 1.1 1992/09/08 19:52:07 --- mit/server/ddx/sun/Imakefile 1992/09/08 21:10:22 *************** *** 43,48 **** --- 43,53 ---- LinkFile(sunGX.o,sunGX.o.dist) #endif + #if HasGcc2 + SpecialObjectRule(sunCG2C.o,sunCG2C.c,-fvolatile) + SpecialObjectRule(sunCG2M.o,sunCG2M.c,-fvolatile) + #endif + sunInitExtMono.o: $(ICONFIGFILES) ObjectFromSpecialSource(sunInitExtMono,../mi/miinitext,-UPEXEXT) ObjectFromSpecialSource(sunInitMono,sunInit,-DMONO_ONLY)
Technical Details
Message-ID:
<9209082134.AA20337@odin.ucsd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.ucsd.edu!mattsonShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.ucsd.edu!mattson From: mattson@cs.ucsd.edu (Jim Mattson) Subject: README.X11 (gcc 2.2.2) overzealous in optimizing some objects Message-ID: <9209082134.AA20337@odin.ucsd.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 8 Sep 1992 20:33:59 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 33