blob: 51563ecb9312ce31d3d8f268e7aa77e1ba8053fa [file] [log] [blame]
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05001From 616f16089f0b01ab02008d7291df0972a99782e0 Mon Sep 17 00:00:00 2001
Brad Bishop26bdd442019-08-16 17:08:17 -04002From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 11:10:21 +0530
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05004Subject: [PATCH 14/58] [Patch, microblaze]: Disable fivopts by default
5
6Turn off ivopts by default. Interferes with cse.
Brad Bishop26bdd442019-08-16 17:08:17 -04007
8Changelog
9
102013-03-18 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11
12 * gcc/common/config/microblaze/microblaze-common.c
13 (microblaze_option_optimization_table): Disable fivopts by default.
14
15Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
16Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
17---
18 gcc/common/config/microblaze/microblaze-common.c | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050022index 4391f939626..0b9d5a1b453 100644
Brad Bishop26bdd442019-08-16 17:08:17 -040023--- a/gcc/common/config/microblaze/microblaze-common.c
24+++ b/gcc/common/config/microblaze/microblaze-common.c
25@@ -24,6 +24,15 @@
26 #include "common/common-target.h"
27 #include "common/common-target-def.h"
28
29+/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */
30+static const struct default_options microblaze_option_optimization_table[] =
31+ {
32+ /* Turn off ivopts by default. It messes up cse. */
33+ { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 },
34+ { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
35+ { OPT_LEVELS_NONE, 0, NULL, 0 }
36+ };
37+
38 #undef TARGET_DEFAULT_TARGET_FLAGS
39 #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT
40
41--
Andrew Geisslera9ff2b32020-10-16 10:11:54 -0500422.17.1
Brad Bishop26bdd442019-08-16 17:08:17 -040043