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