Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 528690 | Differences between
and this patch

Collapse All | Expand All

(-)a/gcc/config/esp.h (-3 / +2 lines)
Lines 20-26 Link Here
20
	/* Hack to support gcc-specs-* in toolchain-funcs.eclass and _filter-hardened in flag-o-matic.eclass  */
20
	/* Hack to support gcc-specs-* in toolchain-funcs.eclass and _filter-hardened in flag-o-matic.eclass  */
21
	#define ESP_CC1_SPEC " %(esp_cc1_ssp) %(esp_cc1_pie) %(esp_cc1_strict_overflow)"
21
	#define ESP_CC1_SPEC " %(esp_cc1_ssp) %(esp_cc1_pie) %(esp_cc1_strict_overflow)"
22
	#if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP )
22
	#if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP )
23
		#define ESP_CC1_SSP_SPEC "%{!fno-stack-protector: %{!fno-stack-protector-all: %{!fno-stack-check: }}}"
23
		#define ESP_CC1_SSP_SPEC "%{!fno-stack-protector: %{!fno-stack-protector-all: }}"
24
	#else
24
	#else
25
		#define ESP_CC1_SSP_SPEC ""
25
		#define ESP_CC1_SSP_SPEC ""
26
	#endif
26
	#endif
Lines 46-53 Link Here
46
	#if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP )
46
	#if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP )
47
		#define ESP_OPTIONS_SSP_SPEC \
47
		#define ESP_OPTIONS_SSP_SPEC \
48
			"%{nostdlib|nodefaultlibs|ffreestanding|fno-stack-protector| \
48
			"%{nostdlib|nodefaultlibs|ffreestanding|fno-stack-protector| \
49
			fstack-protector|fstack-protector-all:;:-fstack-protector-all} \
49
			fstack-protector|fstack-protector-all:;:-fstack-protector-all}"
50
			%{fstack-check|fstack-check=*:;: -fstack-check}"
51
	#else
50
	#else
52
		#define ESP_OPTIONS_SSP_SPEC ""
51
		#define ESP_OPTIONS_SSP_SPEC ""
53
	#endif
52
	#endif

Return to bug 528690