diff options
Diffstat (limited to 'meta-xilinx-bsp/recipes-microblaze/gcc/gcc-9/0015-Patch-microblaze-Disable-fivopts-by-default.patch')
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/gcc/gcc-9/0015-Patch-microblaze-Disable-fivopts-by-default.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-9/0015-Patch-microblaze-Disable-fivopts-by-default.patch b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-9/0015-Patch-microblaze-Disable-fivopts-by-default.patch new file mode 100644 index 00000000..0ada80eb --- /dev/null +++ b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-9/0015-Patch-microblaze-Disable-fivopts-by-default.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 604cae83ce9d2942568178966f69614acbbcbefd Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Tue, 17 Jan 2017 11:10:21 +0530 | ||
4 | Subject: [PATCH 15/63] [Patch, microblaze]: Disable fivopts by default Turn | ||
5 | off ivopts by default. 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 | --- | ||
17 | gcc/common/config/microblaze/microblaze-common.c | 9 +++++++++ | ||
18 | 1 file changed, 9 insertions(+) | ||
19 | |||
20 | diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c | ||
21 | index c30bdef..9b6ef21 100644 | ||
22 | --- a/gcc/common/config/microblaze/microblaze-common.c | ||
23 | +++ b/gcc/common/config/microblaze/microblaze-common.c | ||
24 | @@ -24,6 +24,15 @@ | ||
25 | #include "common/common-target.h" | ||
26 | #include "common/common-target-def.h" | ||
27 | |||
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 | #undef TARGET_DEFAULT_TARGET_FLAGS | ||
38 | #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT | ||
39 | |||
40 | -- | ||
41 | 2.7.4 | ||
42 | |||