This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH/m68k] Align stack
- From: Roman Zippel <zippel at linux-m68k dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Sep 2007 20:22:12 +0200 (CEST)
- Subject: [PATCH/m68k] Align stack
Hi,
This helps with many broken programs with broken alignment assumptions.
bye, Roman
200x-xx-xx Roman Zippel <zippel@linux-m68k.org>
config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
---
gcc/config/m68k/linux.h | 3 +++
1 file changed, 3 insertions(+)
Index: gcc/gcc/config/m68k/linux.h
===================================================================
--- gcc.orig/gcc/config/m68k/linux.h
+++ gcc/gcc/config/m68k/linux.h
@@ -27,6 +27,9 @@ along with GCC; see the file COPYING3.
#define ASM_SPEC "%(asm_cpu_spec) %(asm_pcrel_spec) \
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*}"
+#undef PREFERRED_STACK_BOUNDARY
+#define PREFERRED_STACK_BOUNDARY 32
+
/* for 68k machines this only needs to be TRUE for the 68000 */
#undef STRICT_ALIGNMENT