This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, PR 48690] fix compilation for m68k-*-netbesdelf
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Apr 2011 20:12:35 +0200
- Subject: [patch, PR 48690] fix compilation for m68k-*-netbesdelf
Hi all,
the attached patch fixes the build for m68k-netbsdelf1.6.1. Tested with
a cross build for c,c++ and fortran.
The breakage is alive since r121736.
The patch does the same as m68k linux does.
Ok for trunk?
Thanks,
Andreas
2011-04-22 Andreas Tobler <andreast@fgznet.ch>
PR target/48690
* config/m68k/netbsd-elf.h: Undef STRICT_ALIGNMENT.
Index: config/m68k/netbsd-elf.h
===================================================================
--- config/m68k/netbsd-elf.h (revision 172861)
+++ config/m68k/netbsd-elf.h (working copy)
@@ -97,7 +97,11 @@
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
+/* for 68k machines this only needs to be TRUE for the 68000 */
+#undef STRICT_ALIGNMENT
+#define STRICT_ALIGNMENT 0
+
/* XXX
Here is a bunch of stuff lifted from m68kelf.h. We don't use that
file directly, because it has a lot of baggage we don't want. */