Article View: gnu.gcc.bug
Article #2893gcc 1.37.1 core dumps when compiling for the ns32k cpu
From: David Taylor
Date: Sat, 24 Feb 1990 06:36
Date: Sat, 24 Feb 1990 06:36
50 lines
2135 bytes
2135 bytes
I built gcc 1.37.1 as a cross compiler on a vax running Ultrix 3.1. The
links are:
aux-output.c --> ../config/out-ns32k.c
config.h --> ../config/xm-vax.h
md --> ../config/ns32k.md
tm.h --> ../config/tm-pc532.h
[I'm trying to get it to generate code for a 32532 based personal
computer; since I don't have the machine built yet, much less have an
operating system for it, I'm trying to run gcc as a cross compiler.]
When I ask gcc to compile __cmpsf2 in gnulib.c, it dies with an illegal
instruction.
The file tm-pc532.h is the 2 lines --
#define TARGET_DEFAULT 1
#include "tm-ns32k.h"
plus a redefinition of STANDARD_EXEC_PREFIX and
STANDARD_STARTFILE_PREFIX to point to a subdirectory of my home
directory and *NOTHING* else.
The output of running
./gcc -O -B./ -I. -I.. -I../config -c -DL_cmpsf2 ../gnulib.c -S -v
is:
gcc version 1.37.1
./cpp -v -DL_cmpsf2 -I. -I.. -I../config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ ../gnulib.c /usr/tmp/cca08339.cpp
GNU CPP version 1.37.1
./cc1 /usr/tmp/cca08339.cpp -quiet -dumpbase ../gnulib.c -O -version -o gnulib.s
GNU C version 1.37.1 (32000, National syntax) compiled by CC.
default target switches: -m32081
./gcc: Program cc1 got fatal signal 4.
If I remove the `-O', it compiles okay.
David
p.s. yes, I realize that it seems a little silly to compile gnulib.c
with gcc, but it really isn't -- I want to know which ones generate
function calls and which ones get open coded. The ones that generate
function calls, I'm going to need assembly language versions of. And I
want to know which ones those are.
--
David Taylor
taylor@think.com, ...{ames,bloom-beacon,harvard}!think!taylor
Technical Details
Message-ID:
<9002240636.AA08346@pozzo>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!THINK.COM!taylorShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!THINK.COM!taylor From: taylor@THINK.COM (David Taylor) Newsgroups: gnu.gcc.bug Subject: gcc 1.37.1 core dumps when compiling for the ns32k cpu Message-ID: <9002240636.AA08346@pozzo> Date: 24 Feb 90 06:36:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 50