diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-10/0062-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch')
| -rw-r--r-- | meta-microblaze/recipes-devtools/gcc/gcc-10/0062-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-10/0062-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-10/0062-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch new file mode 100644 index 00000000..e7dfa89c --- /dev/null +++ b/meta-microblaze/recipes-devtools/gcc/gcc-10/0062-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 612e6579116e6714417ea21e6c13b0968bb6aac2 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 62/62] [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 | gcc/common/config/microblaze/microblaze-common.c | 6 ++++-- | ||
| 15 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/gcc/common/config/microblaze/microblaze-common.c b/gcc/common/config/microblaze/microblaze-common.c | ||
| 18 | index fe45f2e..2873d4b 100644 | ||
| 19 | --- a/gcc/common/config/microblaze/microblaze-common.c | ||
| 20 | +++ b/gcc/common/config/microblaze/microblaze-common.c | ||
| 21 | @@ -27,13 +27,15 @@ | ||
| 22 | /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ | ||
| 23 | static const struct default_options microblaze_option_optimization_table[] = | ||
| 24 | { | ||
| 25 | - /* Turn off ivopts by default. It messes up cse. */ | ||
| 26 | + /* Turn off ivopts by default. It messes up cse. | ||
| 27 | + { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, */ | ||
| 28 | { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, | ||
| 29 | - { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, | ||
| 30 | { OPT_LEVELS_NONE, 0, NULL, 0 } | ||
| 31 | }; | ||
| 32 | |||
| 33 | #undef TARGET_DEFAULT_TARGET_FLAGS | ||
| 34 | #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT | ||
| 35 | |||
| 36 | +#undef TARGET_OPTION_OPTIMIZATION_TABLE | ||
| 37 | +#define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table | ||
| 38 | struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; | ||
| 39 | -- | ||
| 40 | 2.7.4 | ||
| 41 | |||
