🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53616

Does gcc on a sparc suffer from alignment migrains?

#53616
From: Larry Williamson
Date: Wed, 16 Oct 1991 13:39
16 lines
1155 bytes
We have some code that skips through a byte stream pulling out
interesting values. There are some values of type long in this stream,
but these values are not on any guaranteed to be on a long word
boundry, (though they are guarenteed to be on a short word boundry).

gcc (version 1.40) seems to get a migraine from this. When the long is
accessed from the stream and it is not on a long word boundry we get a
bus error.

What can be done? Did I build gcc incorrectly? The machine is a sun
ipc (sparc) running sunos 4.1.1.

Thanks for any help you may have to offer.

-Larry
Technical Details
Message-ID: <LARRY.91Oct16143915@mitra.mitra.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!utgpu!watserv1!watmath!mitra!larry

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,149bc2b7ad9a0d9f,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-10-17 04:38:41 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!utgpu!watserv1!watmath!mitra!larry
From: larry@mitra.mitra.com (Larry Williamson)
Newsgroups: gnu.gcc.help
Subject: Does gcc on a sparc suffer from alignment migrains?
Message-ID: <LARRY.91Oct16143915@mitra.mitra.com>
Date: 16 Oct 91 13:39:15 GMT
Sender: larry@mitra.com (Larry Williamson)
Organization: Mitra Imaging Corp.
Lines: 16