This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]