diff options
| -rw-r--r-- | scripts/gcc-plugins/arm_ssp_per_task_plugin.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/gcc-plugins/arm_ssp_per_task_plugin.c b/scripts/gcc-plugins/arm_ssp_per_task_plugin.c index a65fbefb8501..89c47f57d1ce 100644 --- a/scripts/gcc-plugins/arm_ssp_per_task_plugin.c +++ b/scripts/gcc-plugins/arm_ssp_per_task_plugin.c | |||
| @@ -53,6 +53,19 @@ static unsigned int arm_pertask_ssp_rtl_execute(void) | |||
| 53 | #define NO_GATE | 53 | #define NO_GATE |
| 54 | #include "gcc-generate-rtl-pass.h" | 54 | #include "gcc-generate-rtl-pass.h" |
| 55 | 55 | ||
| 56 | #if BUILDING_GCC_VERSION >= 9000 | ||
| 57 | static bool no(void) | ||
| 58 | { | ||
| 59 | return false; | ||
| 60 | } | ||
| 61 | |||
| 62 | static void arm_pertask_ssp_start_unit(void *gcc_data, void *user_data) | ||
| 63 | { | ||
| 64 | targetm.have_stack_protect_combined_set = no; | ||
| 65 | targetm.have_stack_protect_combined_test = no; | ||
| 66 | } | ||
| 67 | #endif | ||
| 68 | |||
| 56 | __visible int plugin_init(struct plugin_name_args *plugin_info, | 69 | __visible int plugin_init(struct plugin_name_args *plugin_info, |
| 57 | struct plugin_gcc_version *version) | 70 | struct plugin_gcc_version *version) |
| 58 | { | 71 | { |
| @@ -100,5 +113,10 @@ __visible int plugin_init(struct plugin_name_args *plugin_info, | |||
| 100 | register_callback(plugin_info->base_name, PLUGIN_PASS_MANAGER_SETUP, | 113 | register_callback(plugin_info->base_name, PLUGIN_PASS_MANAGER_SETUP, |
| 101 | NULL, &arm_pertask_ssp_rtl_pass_info); | 114 | NULL, &arm_pertask_ssp_rtl_pass_info); |
| 102 | 115 | ||
| 116 | #if BUILDING_GCC_VERSION >= 9000 | ||
| 117 | register_callback(plugin_info->base_name, PLUGIN_START_UNIT, | ||
| 118 | arm_pertask_ssp_start_unit, NULL); | ||
| 119 | #endif | ||
| 120 | |||
| 103 | return 0; | 121 | return 0; |
| 104 | } | 122 | } |
