http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37109
--- Comment #11 from Mikael Pettersson <mikpe at it dot uu.se> 2011-04-30 15:09:32 UTC --- (In reply to comment #10) > At a first glance, there’s a lot of system-linux-*.ads but none for m68k. > Should I have a look in that area, or is that not an issue at all? It will be an issue, but I got the segfaults even with such a file, so I think the problem is more fundamental than that. What you should do is make system-linux-m68k.ads a clone of e.g. system-linux-ppc.ads (both big-endian 32-bitters), set the ZCX variables to false, and disable stack check probes. Then update gcc-interface/Makefile.in with a case that matches m68k-linux and does what other linux targets do, but selecting system-linux-m68k.ads and setting EH_MECHANISM= (the empty string). This enables SJLJ EH which is simpler and adequate for initial bootstrap. Once gnat works on m68k you can try enabling ZCX EH (which will need dwarf2 unwinding). (I can't post a patch due to delays at the FSF wrt my employer's disclaimer.)