| Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 1 | From 616f16089f0b01ab02008d7291df0972a99782e0 Mon Sep 17 00:00:00 2001 | 
| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 
|  | 3 | Date: Tue, 17 Jan 2017 11:10:21 +0530 | 
| Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 4 | Subject: [PATCH 14/58] [Patch, microblaze]: Disable fivopts by default | 
|  | 5 |  | 
|  | 6 | Turn off ivopts by default. Interferes with cse. | 
| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 7 |  | 
|  | 8 | Changelog | 
|  | 9 |  | 
|  | 10 | 2013-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 |  | 
|  | 15 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 
|  | 16 | Signed-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 |  | 
|  | 21 | diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c | 
| Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 22 | index 4391f939626..0b9d5a1b453 100644 | 
| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 23 | --- 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 Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 42 | 2.17.1 | 
| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 43 |  |