🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54330

GCC'ed programs give memory fault (using COFF patches).

#54330
From: James Tsillas
Date: Mon, 29 Oct 1990 21:55
29 lines
1765 bytes
I have applied the tut.cs.edu patches to gas-1.36 and gcc-1.37.1 in order
to produce COFF objects on a DPX/2 using BOS 1.1.16 (a System V based UNIX).

I used SUN_SYNTAX on the GAS and it seems to be working OK on some smaller
programs. When I built GCC (using the same patches) I specified sun3-nfp
as my machine and I edited config/tm-sun3-nfp.h like so:

/* Define target machine as a Sun 3 with no 68881.  */

#define TARGET_DEFAULT 5
#define USG
#define isinf(x) 1

#include "tm-sun3.h"
#undef STARTFILE_SPEC

Everything built OK and the resulting GCC worked on some smaller programs.
I then tested GCC on indent-1.1 and the resulting indent gives a memory
fault with core dump. 

Is there something else I should have done with GCC to get it to produce
sun syntax on a System V machine?

james.
--
 == James Tsillas                    Bull HN Information Systems Inc. ==
 == (508) 294-2937                   300 Concord Road   826A          ==
 == jtsillas@bubba.ma30.bull.com     Billerica, MA 01821              ==
Technical Details
Message-ID: <JTSILLAS.90Oct29165517@bubba.ma30.bull.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!agate!ucbvax!ucsd!usc!wuarchive!mit-eddie!bbn.com!mips2!bubba!jtsillas

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,710ab1fc6633d5b1,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-10-30 08:30:08 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!agate!ucbvax!ucsd!usc!wuarchive!mit-eddie!bbn.com!mips2!bubba!jtsillas
From: jtsillas@bubba.ma30.bull.com (James Tsillas)
Newsgroups: gnu.gcc.help
Subject: GCC'ed programs give memory fault (using COFF patches).
Message-ID: <JTSILLAS.90Oct29165517@bubba.ma30.bull.com>
Date: 29 Oct 90 21:55:17 GMT
Sender: news@mips2.cr.bull.com (Usenet News Manager)
Distribution: gnu
Organization: Bull HN, Worldwide Information Systems, Billerica, Mass., USA
Lines: 29
Posted: Mon Oct 29 22:55:17 1990