stackinfo.h
kaz Kojima
kkojima@rr.iij4u.or.jp
Tue Apr 10 18:16:00 GMT 2001
Hi,
> The port maintainers for arm, cris, hppa, sh (any others?) will have
> to add appropriate files now. I assume all but hppa have stacks
> growing downwards but I won't add the files myself.
The attached patch is a stackinfo.h for SH.
kaz
--
2000-4-10 kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/sh/stackinfo.h: New file.
diff -u /dev/null sysdeps/sh/stackinfo.h
--- /dev/null Wed May 6 05:32:27 1998
+++ sysdeps/sh/stackinfo.h Wed Apr 11 01:04:32 2001
@@ -0,0 +1,28 @@
+/* Copyright (C) 2001 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* This file contains a bit of information about the stack allocation
+ of the processor. */
+
+#ifndef _STACKINFO_H
+#define _STACKINFO_H 1
+
+/* On SH the stack grows down. */
+#define _STACK_GROWS_DOWN 1
+
+#endif /* stackinfo.h */
More information about the Libc-hacker
mailing list