Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: HEADS UP: plan to switch many ports over to GCC 12 soon



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
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"


Home | Main Index | Thread Index | Old Index