DU3.2D-1 code bombs if not member aligned?

From: Simon Greaves <S.J.Greaves_at_hw.ac.uk>
Date: Thu, 1 Aug 1996 17:22:10 +0100 (BST)

I'm attempting to compile some C code in which I'd like to byte align the
data structure elements. A quick look at the manual page looks like I
should use either the -Zpn flag or a combination of -migrate and
-nomemmber_alignment.

Using either of these generates code without warnings, but which core
dumps on a fprintf call. Dbx says:

(dbx) run -d
signal Segmentation fault at >*[memcpy, 0x3ff80847ee4] stq_u r3, 0(r16)

which looks like it's somewhere in a system library. Needless to say the
same code _without_ byte alignment runs flawlessly.

Am I'm doing something wrong, or is there a problem with the
compiler/libraries? Any ideas anyone?

Simon
--
Simon Greaves					email:	S.J.Greaves_at_hw.ac.uk
Systems development manager			phone:	+44 (0) 131 451 3265
Computer Centre, Heriot-Watt University		fax:	+44 (0) 131 451 3261
Edinburgh, EH14 4AS, UK
Received on Thu Aug 01 1996 - 18:52:29 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT