https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69614
--- Comment #3 from ktkachov at gcc dot gnu.org --- Note that -mtpcs-leaf-frame was deprecated in GCC 5 due to a number of bugs with it: https://gcc.gnu.org/gcc-5/changes.html There are a number of known issues with these options relating to the old ABI: https://gcc.gnu.org/bugzilla/buglist.cgi?quicksearch=mapcs-frame&list_id=139237