diff --git a/gcc/config/esp.h b/gcc/config/esp.h index 3d6726b..4a56883 100644 --- a/gcc/config/esp.h +++ b/gcc/config/esp.h @@ -20,7 +20,7 @@ /* Hack to support gcc-specs-* in toolchain-funcs.eclass and _filter-hardened in flag-o-matic.eclass */ #define ESP_CC1_SPEC " %(esp_cc1_ssp) %(esp_cc1_pie) %(esp_cc1_strict_overflow)" #if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP ) - #define ESP_CC1_SSP_SPEC "%{!fno-stack-protector: %{!fno-stack-protector-all: %{!fno-stack-check: }}}" + #define ESP_CC1_SSP_SPEC "%{!fno-stack-protector: %{!fno-stack-protector-all: }}" #else #define ESP_CC1_SSP_SPEC "" #endif @@ -46,8 +46,7 @@ #if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP ) #define ESP_OPTIONS_SSP_SPEC \ "%{nostdlib|nodefaultlibs|ffreestanding|fno-stack-protector| \ - fstack-protector|fstack-protector-all:;:-fstack-protector-all} \ - %{fstack-check|fstack-check=*:;: -fstack-check}" + fstack-protector|fstack-protector-all:;:-fstack-protector-all}" #else #define ESP_OPTIONS_SSP_SPEC "" #endif