The current implementation of -fstack-check-register doesn't work on m68k. With -fstack-check-register=N, the m68k inserts stack checking code like
cmp.l %dN,%sp trapcs However, %dN isn't reserved in FIXED_REGISTER. So the compiler would use %dN as an available regiter elsewhere. -- Summary: Incorect support for -fstack-limit Product: gcc Version: unknown Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kazu at gcc dot gnu dot org GCC target triplet: m68k-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28889