From 4f39b41b04411583bf0325216ae57ea2feb0d060 Mon Sep 17 00:00:00 2001 From: is Date: Sun, 26 Oct 1997 14:46:31 +0000 Subject: Workaround for Sparc alignment problem. From PR 3417 by Krister Walfridsson. XXX Somebody should look deeper into this. --- gnu/lib/libg++/libio/strfile.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/lib/libg++') diff --git a/gnu/lib/libg++/libio/strfile.h b/gnu/lib/libg++/libio/strfile.h index d2ae4c02869..63757b636f3 100644 --- a/gnu/lib/libg++/libio/strfile.h +++ b/gnu/lib/libg++/libio/strfile.h @@ -40,7 +40,11 @@ typedef struct _IO_strfile_ { struct _IO_FILE _f; const void *_vtable; - struct _IO_str_fields _s; + struct _IO_str_fields _s __attribute__ ((aligned(8))); + /* + * XXX This alignment is a workaround for a Sparc alignment problem. + * see NetBSD PR #3417. + */ } _IO_strfile; /* dynamic: set when the array object is allocated (or reallocated) as -- cgit