diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch')
| -rw-r--r-- | meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch index bcd941da..ed48daf7 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 009fc9cbb72f50ac73b7f58153d0d90db46b48b8 Mon Sep 17 00:00:00 2001 | 1 | From a64afc59e82703f40d04d4d7126038811a195467 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Nagaraju <nmekala@xilinx.com> |
| 3 | Date: Wed, 8 May 2019 14:12:03 +0530 | 3 | Date: Wed, 8 May 2019 14:12:03 +0530 |
| 4 | Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and | 4 | Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and |
| @@ -6,40 +6,45 @@ Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and | |||
| 6 | 6 | ||
| 7 | Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default. | 7 | Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default. |
| 8 | 8 | ||
| 9 | * gcc/common/config/microblaze/microblaze-common.cc | 9 | * gcc/common/config/microblaze/microblaze-common.c |
| 10 | (microblaze_option_optimization_table): Disable fivopts by default. | 10 | (microblaze_option_optimization_table): Disable fivopts by default. |
| 11 | 11 | ||
| 12 | Signed-off-by: Nagaraju Mekala <nmekala@xilinx.com> | 12 | Signed-off-by: Nagaraju Mekala <nmekala@xilinx.com> |
| 13 | Mahesh Bodapati <mbodapat@xilinx.com> | ||
| 14 | Conflicts: | ||
| 15 | gcc/common/config/microblaze/microblaze-common.c | ||
| 13 | 16 | ||
| 14 | Conflicts: | 17 | Conflicts: |
| 15 | gcc/common/config/microblaze/microblaze-common.cc | 18 | gcc/common/config/microblaze/microblaze-common.c |
| 16 | --- | 19 | --- |
| 17 | gcc/common/config/microblaze/microblaze-common.cc | 11 +++++++++++ | 20 | gcc/common/config/microblaze/microblaze-common.cc | 13 +++++++++++++ |
| 18 | 1 file changed, 11 insertions(+) | 21 | 1 file changed, 13 insertions(+) |
| 19 | 22 | ||
| 20 | diff --git a/gcc/common/config/microblaze/microblaze-common.cc b/gcc/common/config/microblaze/microblaze-common.cc | 23 | diff --git a/gcc/common/config/microblaze/microblaze-common.cc b/gcc/common/config/microblaze/microblaze-common.cc |
| 21 | index 1e4abb34027..d3a74fcc99e 100644 | 24 | index 21b35f55b92..137332ded25 100644 |
| 22 | --- a/gcc/common/config/microblaze/microblaze-common.cc | 25 | --- a/gcc/common/config/microblaze/microblaze-common.cc |
| 23 | +++ b/gcc/common/config/microblaze/microblaze-common.cc | 26 | +++ b/gcc/common/config/microblaze/microblaze-common.cc |
| 24 | @@ -24,7 +24,18 @@ | 27 | @@ -24,7 +24,20 @@ |
| 25 | #include "common/common-target.h" | 28 | #include "common/common-target.h" |
| 26 | #include "common/common-target-def.h" | 29 | #include "common/common-target-def.h" |
| 27 | 30 | ||
| 28 | +/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ | 31 | +/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ |
| 29 | +static const struct default_options microblaze_option_optimization_table[] = | 32 | +static const struct default_options microblaze_option_optimization_table[] = |
| 30 | + { | 33 | + { |
| 31 | + /* Turn off ivopts by default. It messes up cse. | 34 | + /* Turn off ivopts by default. It messes up cse. |
| 32 | + { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, */ | 35 | + { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, */ |
| 33 | + { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, | 36 | + { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, |
| 34 | + { OPT_LEVELS_NONE, 0, NULL, 0 } | 37 | + { OPT_LEVELS_NONE, 0, NULL, 0 } |
| 35 | + }; | 38 | + }; |
| 36 | + | 39 | + |
| 40 | + | ||
| 37 | #undef TARGET_DEFAULT_TARGET_FLAGS | 41 | #undef TARGET_DEFAULT_TARGET_FLAGS |
| 38 | #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT | 42 | #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT |
| 39 | 43 | ||
| 40 | +#undef TARGET_OPTION_OPTIMIZATION_TABLE | 44 | +#undef TARGET_OPTION_OPTIMIZATION_TABLE |
| 41 | +#define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table | 45 | +#define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table |
| 46 | + | ||
| 42 | struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; | 47 | struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; |
| 43 | -- | 48 | -- |
| 44 | 2.17.1 | 49 | 2.37.1 (Apple Git-137.1) |
| 45 | 50 | ||
