summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-02-26 19:32:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-02-26 19:32:55 +0000
commitad26d69cbd87a5d5f022e8af782771e1e5f4d665 (patch)
tree0179678eeb469c8c09cfbaf70344490c48732e14 /lib/libc
parent0fdadeffd871cd481e8189eb9d18f5b7fc10c266 (diff)
Add SuperH to the architecture list which stack grow down, even though this
file is not used for them.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/alloca.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/alloca.c b/lib/libc/gen/alloca.c
index caf51daac13..e693faa18c8 100644
--- a/lib/libc/gen/alloca.c
+++ b/lib/libc/gen/alloca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloca.c,v 1.7 2005/11/30 15:02:59 deraadt Exp $ */
+/* $OpenBSD: alloca.c,v 1.8 2007/02/26 19:32:54 miod Exp $ */
/* alloca.c -- allocate automatically reclaimed memory
(Mostly) portable public-domain implementation -- D A Gwyn
@@ -43,7 +43,8 @@ typedef void *pointer;
#if defined(__alpha__) || defined(__m68k__) || defined(__i386__) || \
defined(__m88k__) || defined(__mips__) || defined(__powerpc__) || \
defined(__sparc__) || defined(__sparc64__) || defined(__vax__) || \
- defined(__amd64__) || defined(__mips64__) || defined(__arm__)
+ defined(__amd64__) || defined(__mips64__) || defined(__arm__) || \
+ defined(__sh__)
# define STACK_DIRECTION -1
#elif defined(__hppa__) || defined(__hppa64__)
# define STACK_DIRECTION 1