Re: HEADS UP: plan to switch many ports over to GCC 12 soon
Rin Okuyama <[email protected]> Sun, 30 Jun 2024 15:10:31 +0900
| Newsgroups | gmane.os.netbsd.current,gmane.os.netbsd.ports.mips.devel,gmane.os.netbsd.ports.powerpc,gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 2024/06/30 8:44, matthew green wrote: > sh3, m68k, m68000, and vax remain. m68k is ready i believe, Agreed. > m68000 doesn't yet build fully, Only libasan is currently broken. With attached patch, I've confirmed libasan successfully builds, and system boots multiuser on TME. I've never tested asan on sun2, as it does not work anyway. Also, affects of this patch for other m68k ports are not even compile-tested... For sun2, GCC cannot build natively for years. It may be better just to disable asan for m68000. Thanks, rin
sun2-asan-hack-20240630.patch
(text/plain, 582 B)
diff --git a/external/gpl3/gcc/dist/gcc/config/m68k/m68k.md b/external/gpl3/gcc/dist/gcc/config/m68k/m68k.md
index e4208cf323f..2e08eca18e5 100644
--- a/external/gpl3/gcc/dist/gcc/config/m68k/m68k.md
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/m68k.md
@@ -6266,7 +6266,8 @@
return ("move.l #_GLOBAL_OFFSET_TABLE_@GOTPC, %0\n\t"
"lea (-6, %%pc, %0), %0");
else
- return "lea (%%pc, _GLOBAL_OFFSET_TABLE_@GOTPC), %0";
+ return ("move.l #_GLOBAL_OFFSET_TABLE_@GOTPC, %0\n\t"
+ "lea (%%pc, %0.l),%0");
}
else
return ("movel #_GLOBAL_OFFSET_TABLE_, %0\n\t"