This patch switches the nios2 backend to use LRA. It's conceptually independent of the other changes in this patch set and in fact I had wanted to push this change earlier in the summer. But, enabling LRA by itself causes a handful of test regressions due to a missing movsi splitter -- which is provided in part 3 of the patch series.
-Sandra
2017-10-19 Sandra Loosemore <san...@codesourcery.com> gcc/ * config/nios2/nios2.c (TARGET_LRA_P): Don't override.
diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c index 2602605..659250a 100644 --- a/gcc/config/nios2/nios2.c +++ b/gcc/config/nios2/nios2.c @@ -5052,9 +5052,6 @@ nios2_adjust_reg_alloc_order (void) #undef TARGET_LEGITIMATE_ADDRESS_P #define TARGET_LEGITIMATE_ADDRESS_P nios2_legitimate_address_p -#undef TARGET_LRA_P -#define TARGET_LRA_P hook_bool_void_false - #undef TARGET_PREFERRED_RELOAD_CLASS #define TARGET_PREFERRED_RELOAD_CLASS nios2_preferred_reload_class