Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | From 25b161dd222311cca0e6ab46b7f3be444bd4bbe8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Sat, 26 Aug 2017 19:21:32 -0700 |
| 4 | Subject: [PATCH] Disable fivopts by default Turn off ivopts by default. |
| 5 | Interferes with cse. |
| 6 | |
| 7 | Changelog |
| 8 | |
| 9 | 2013-03-18 Edgar E. Iglesias <edgar.iglesias@xilinx.com> |
| 10 | |
| 11 | * gcc/common/config/microblaze/microblaze-common.c |
| 12 | (microblaze_option_optimization_table): Disable fivopts by default. |
| 13 | |
| 14 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> |
| 15 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
| 16 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
| 17 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 18 | Upstream-Status: Pending |
| 19 | --- |
| 20 | gcc/common/config/microblaze/microblaze-common.c | 2 ++ |
| 21 | 1 file changed, 2 insertions(+) |
| 22 | |
| 23 | diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c |
| 24 | index 4975663305..8ddc4c3cbe 100644 |
| 25 | --- a/gcc/common/config/microblaze/microblaze-common.c |
| 26 | +++ b/gcc/common/config/microblaze/microblaze-common.c |
| 27 | @@ -27,6 +27,8 @@ |
| 28 | /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ |
| 29 | static const struct default_options microblaze_option_optimization_table[] = |
| 30 | { |
| 31 | + /* Turn off ivopts by default. It messes up cse. */ |
| 32 | + { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, |
| 33 | { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, |
| 34 | { OPT_LEVELS_NONE, 0, NULL, 0 } |
| 35 | }; |
| 36 | -- |
| 37 | 2.14.2 |
| 38 | |