🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2645

gcc dies when cross compiling for ns32k processor

#2645
From: taylor
Date: Mon, 15 May 1989 23:11
71 lines
3555 bytes
I recently ftp'ed gcc-1.35 from prep.  I'm trying to use it as a cross
compiler to generate code for a Nat'l Semi 32K processor.

I've tried two configurations.  One is:

	aux-output.c	-> config/out-ns32k.c
	config.h	-> config/xm-sunos4.h
	md		-> config/ns32k.md
	tm.h		-> config/tm-sequent.h

The other has aux-output.c, config.h, and md the same.  And has tm.h as
a symbolic link to config/tm-ns32k-gas.h which is, currently, just:
-------------------
#include "tm-ns32k.h"

#define DBX_DEBUGGING_INFO

#define TARGET_DEFAULT 0
-------------------

After compiling the compiler on a Sun4 running SunOS 4.0.1, I decided to
try compiling some files.  Wanting something simple, I decided to try
compiling gnulib.c and see if it would correctly compile into calls to
the functions found in gnulib.c.  I also decided to try compiling gnulib.c

There are two functions in gnulib.c --  _ashrsi3 and _ashlsi3 -- and two
in gnulib2.c -- _subdi3 and _negdi2 -- that cause gcc to die with:

	Program cc1 got fatal signal 6

as the following transcript shows.  Note -- this transcript is for the
sequent configuration, with optimization.  It also happens with the
other configuration.  And it happens without optimization.

taylor@odin 7: foreach i (_ashrsi3 _ashlsi3)
? bin/gcc -v -Bbin/sequent/ -S -O -I. -I./config -DL$i gnulib.c
? echo ======================
? end
gcc version 1.35
 bin/sequent/cpp -v -DL_ashrsi3 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib.c /tmp/cca16921.cpp
GNU CPP version 1.35
 bin/sequent/cc1 /tmp/cca16921.cpp -quiet -dumpbase gnulib.c -O -version -o gnulib.s
GNU C version 1.35 (32000, Sequent syntax) compiled by CC.
bin/gcc: Program cc1 got fatal signal 6.
======================
gcc version 1.35
 bin/sequent/cpp -v -DL_ashlsi3 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib.c /tmp/cca16924.cpp
GNU CPP version 1.35
 bin/sequent/cc1 /tmp/cca16924.cpp -quiet -dumpbase gnulib.c -O -version -o gnulib.s
GNU C version 1.35 (32000, Sequent syntax) compiled by CC.
bin/gcc: Program cc1 got fatal signal 6.
======================
taylor@odin 8: foreach i (_subdi3 _negdi2)
? bin/gcc -v -Bbin/sequent/ -S -O -I. -I./config -DL$i gnulib2.c
? echo ======================
? end
gcc version 1.35
 bin/sequent/cpp -v -DL_subdi3 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib2.c /tmp/cca16927.cpp
GNU CPP version 1.35
 bin/sequent/cc1 /tmp/cca16927.cpp -quiet -dumpbase gnulib2.c -O -version -o gnulib2.s
GNU C version 1.35 (32000, Sequent syntax) compiled by CC.
bin/gcc: Program cc1 got fatal signal 6.
======================
gcc version 1.35
 bin/sequent/cpp -v -DL_negdi2 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib2.c /tmp/cca16930.cpp
GNU CPP version 1.35
 bin/sequent/cc1 /tmp/cca16930.cpp -quiet -dumpbase gnulib2.c -O -version -o gnulib2.s
GNU C version 1.35 (32000, Sequent syntax) compiled by CC.
bin/gcc: Program cc1 got fatal signal 6.
======================
taylor@odin 9: 
Technical Details
Message-ID: <8905152311.AA16981@odin.think.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!THINK.COM!taylor

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!THINK.COM!taylor
From: taylor@THINK.COM
Newsgroups: gnu.gcc.bug
Subject: gcc dies when cross compiling for ns32k processor
Message-ID: <8905152311.AA16981@odin.think.com>
Date: 15 May 89 23:11:29 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 71