[PATCH/m68k] Align stack

Roman Zippel zippel@linux-m68k.org
Wed Sep 19 20:34:00 GMT 2007


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



More information about the Gcc-patches mailing list