gcc/config/bootstrap-cet.mk
H.J. Lu e59133c36c x86/CET: Add -fcf-protection to STAGE4_CFLAGS
Since profiledbootstrap uses

STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use

add

STAGE4_CFLAGS += -fcf-protection -mcet

to bootstrap-cet.mk to support profiledbootstrap with CET.

	PR bootstrap/85490
	* bootstrap-cet.mk (STAGE4_CFLAGS): New.

From-SVN: r259620
2018-04-24 15:12:46 -07:00

6 lines
169 B
Makefile

# This option enables -fcf-protection for stage2, stage3 and stage4.
STAGE2_CFLAGS += -fcf-protection
STAGE3_CFLAGS += -fcf-protection
STAGE4_CFLAGS += -fcf-protection