https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85666
--- Comment #6 from Sergei Trofimovich <slyfox at inbox dot ru> --- An observation (does not pretend to be a fix) to make gcc compile standard library and be able to build runnable hello world on gcc master: 1. MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS can be unoptimised 2. assemble_integer has to be tweaked to avoid failure in dwarf generation --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -72,7 +72,7 @@ along with GCC; see the file COPYING3. If not see #define MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS \ (flag_exceptions \ && ((reload_completed && df_regs_ever_live_p (MMIX_rJ_REGNUM)) \ - || !leaf_function_p ())) + || true)) #define IS_MMIX_EH_RETURN_DATA_REG(REGNO) \ (crtl->calls_eh_return \ diff --git a/gcc/varasm.c b/gcc/varasm.c index 85296b4a2ec..e8d26bd1623 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2816,7 +2816,7 @@ assemble_integer (rtx x, unsigned int size, unsigned int align, int force) gcc_assert (!i); } - gcc_assert (!force); + //gcc_assert (!force); return false; }