diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-11/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch')
| -rw-r--r-- | meta-microblaze/recipes-devtools/gcc/gcc-11/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-11/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-11/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch new file mode 100644 index 00000000..37945b65 --- /dev/null +++ b/meta-microblaze/recipes-devtools/gcc/gcc-11/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | From 009fc9cbb72f50ac73b7f58153d0d90db46b48b8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Nagaraju <nmekala@xilinx.com> | ||
| 3 | Date: Wed, 8 May 2019 14:12:03 +0530 | ||
| 4 | Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and | ||
| 5 | disable fivopts by default | ||
| 6 | |||
| 7 | Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default. | ||
| 8 | |||
| 9 | * gcc/common/config/microblaze/microblaze-common.c | ||
| 10 | (microblaze_option_optimization_table): Disable fivopts by default. | ||
| 11 | |||
| 12 | Signed-off-by: Nagaraju Mekala <nmekala@xilinx.com> | ||
| 13 | |||
| 14 | Conflicts: | ||
| 15 | gcc/common/config/microblaze/microblaze-common.c | ||
| 16 | --- | ||
| 17 | gcc/common/config/microblaze/microblaze-common.c | 11 +++++++++++ | ||
| 18 | 1 file changed, 11 insertions(+) | ||
| 19 | |||
| 20 | diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c | ||
| 21 | index 1e4abb34027..d3a74fcc99e 100644 | ||
| 22 | --- a/gcc/common/config/microblaze/microblaze-common.c | ||
| 23 | +++ b/gcc/common/config/microblaze/microblaze-common.c | ||
| 24 | @@ -24,7 +24,18 @@ | ||
| 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_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, */ | ||
| 33 | + { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, | ||
| 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 | +#undef TARGET_OPTION_OPTIMIZATION_TABLE | ||
| 41 | +#define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table | ||
| 42 | struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; | ||
| 43 | -- | ||
| 44 | 2.17.1 | ||
| 45 | |||
