🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #710

(none)

#710
From: Dr R M Damerell, RHBNC
Date: Sun, 15 Oct 1989 12:36
34 lines
1593 bytes
BACKGROUND: Sun 3/60, SUN-OS 3.5,  GNU C compiler gcc-1.35, X11R3

The file  X11.README that comes with GCC needs some additions:

1.  It recommends:

CC = gcc -fcombine-regs -fstrength-reduce -finline-functions \
-fpcc-struct-return -DPURDUE -Dinline=INLINE -DNOSTDHDRS

I found I also need  -traditional  otherwise you get warnings saying:

warning: <function name>  was declared `extern' and later `static'

2. When compiling   twm    I also needed  -fwritable-strings  .  Without 
this flag, twm crashes with a segmentation violation error. I do not know 
what other clients if any need this flag.

3. I also had to disable  -O . I think the recommended way is to insert

#ifndef OptimizedCDebugFlags
#define OptimizedCDebugFlags 
#endif

into  ./util/imake.includes/site.def

With -O I got errors: "virtual memory exhausted" on several files including
./server/ddx/mfb/mfbbitblt.c  and   ....cfb/cfbfillsp.c

4. A further patch was needed in  ./clients/xdm/Login.h  The definition of 
struct   _LoginData  needs a semicolon just before the closing }  

Without this, SUN's  cc  compiles  Login.c  but gcc produces a display of fireworks.

R.M.Damerell 
Technical Details
Message-ID: <8910151250.AA25246@AENEAS.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!damerell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!damerell
From: damerell@NSFNET-RELAY.AC.UK (Dr R M Damerell, RHBNC)
Newsgroups: gnu.gcc.bug
Subject: (none)
Message-ID: <8910151250.AA25246@AENEAS.MIT.EDU>
Date: 15 Oct 89 12:36:40 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 34