summaryrefslogtreecommitdiff
path: root/gnu/lib/libg++/libio
diff options
context:
space:
mode:
authoris <is@NetBSD.org>1997-10-26 14:46:31 +0000
committeris <is@NetBSD.org>1997-10-26 14:46:31 +0000
commit4f39b41b04411583bf0325216ae57ea2feb0d060 (patch)
treee88382a241b0367672740b0666619eb65eaea086 /gnu/lib/libg++/libio
parent552f0dc291dff90bb87939e5a5cf4ecf5ceb7d76 (diff)
Workaround for Sparc alignment problem. From PR 3417 by Krister Walfridsson.
XXX Somebody should look deeper into this.
Diffstat (limited to 'gnu/lib/libg++/libio')
-rw-r--r--gnu/lib/libg++/libio/strfile.h6
1 files changed, 5 insertions, 1 deletions
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