300-mips_Os_cpu_rtx_cost_model.patch 627 B

123456789101112131415161718192021
  1. commit ecf7671b769fe96f7b5134be442089f8bdba55d2
  2. Author: Felix Fietkau <nbd@nbd.name>
  3. Date: Thu Aug 4 20:29:45 2016 +0200
  4. gcc: add a patch to generate better code with Os on mips
  5. Also happens to reduce compressed code size a bit
  6. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  7. --- a/gcc/config/mips/mips.c
  8. +++ b/gcc/config/mips/mips.c
  9. @@ -19834,7 +19834,7 @@ mips_option_override (void)
  10. flag_pcc_struct_return = 0;
  11. /* Decide which rtx_costs structure to use. */
  12. - if (optimize_size)
  13. + if (0 && optimize_size)
  14. mips_cost = &mips_rtx_cost_optimize_size;
  15. else
  16. mips_cost = &mips_rtx_cost_data[mips_tune];