Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh explain what's breaking with alignments > 16, but no ...
details: https://anonhg.NetBSD.org/src/rev/ed65901c56f0
branches: trunk
changeset: 537886:ed65901c56f0
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 07 14:26:08 2002 +0000
description:
explain what's breaking with alignments > 16, but no fix yet.
diffstat:
bin/sh/machdep.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 261039e5dbaa -r ed65901c56f0 bin/sh/machdep.h
--- a/bin/sh/machdep.h Mon Oct 07 13:29:59 2002 +0000
+++ b/bin/sh/machdep.h Mon Oct 07 14:26:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.h,v 1.9 2002/10/04 13:15:51 christos Exp $ */
+/* $NetBSD: machdep.h,v 1.10 2002/10/07 14:26:08 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -44,4 +44,8 @@
*/
#define SHELL_SIZE (sizeof(union {int i; char *cp; double d; }) - 1)
+/*
+ * It appears that grabstackstr() will barf with such alignments
+ * because stalloc() will return a string allocated in a new stackblock.
+ */
#define SHELL_ALIGN(nbytes) (((nbytes) + SHELL_SIZE) & ~SHELL_SIZE)
Home |
Main Index |
Thread Index |
Old Index