https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note on the trunk I get: [apinski@xeond2 upstream-cross-aarch64]$ QEMU_LD_PREFIX=./install/aarch64-linux-gnu/sysroot/ ./install-qemu/bin/qemu-aarch64 a.out terminate called after throwing an instance of 'int' qemu: uncaught target signal 6 (Aborted) - core dumped Aborted (core dumped) Which is correct. Are you sure you are not getting a message like: terminate called after throwing an instance of 'int'