[Bug target/48690] gcc-4.3.5 fails for target m68k

andreast at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 28 17:07:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48690

--- Comment #33 from Andreas Tobler <andreast at gcc dot gnu.org> 2011-04-28 16:58:53 UTC ---
I was able to build a cross gcc with the patch below.
But I do not know if this correct. Especially I do not know if we can lower the
BIGGEST_ALIGNMENT. If not, I do not know how to solve the issue.

Is the m68k ABI available somewhere?

Here the current patch:

Index: netbsd-elf.h
===================================================================
--- netbsd-elf.h    (revision 172861)
+++ netbsd-elf.h    (working copy)
@@ -272,6 +272,8 @@
 #undef STACK_BOUNDARY
 #define STACK_BOUNDARY 32

+#undef PREFERRED_STACK_BOUNDARY
+#define PREFERRED_STACK_BOUNDARY 32

 /* Alignment of field after `int : 0' in a structure.
    For m68k/SVR4, this is the next longword boundary.  */
@@ -285,7 +287,7 @@
    boundaries */

 #undef BIGGEST_ALIGNMENT
-#define BIGGEST_ALIGNMENT 64
+#define BIGGEST_ALIGNMENT 32


 /* The svr4 ABI for the m68k says that records and unions are returned



More information about the Gcc-bugs mailing list