From c58a9f350aa76af2bc1a826f2eac371da9edd04e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 24 Oct 2017 12:50:03 +0000 Subject: Add bootstrap-cet.mk to bootstrap GCC with Intel CET Bootstrap GCC with Intel CET by configuring GCC with --with-build-config="bootstrap-cet bootstrap-debug" Tested on Linux/i686 and Linux/x86-64. config/ * bootstrap-cet.mk: New file. gcc/ * doc/install.texi: Document bootstrap-cet. From-SVN: r254043 --- gcc/ChangeLog | 4 ++++ gcc/doc/install.texi | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a43ff8..ce02caa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2017-10-24 H.J. Lu + * doc/install.texi: Document bootstrap-cet. + +2017-10-24 H.J. Lu + PR target/82659 * config/i386/i386.c (rest_of_insert_endbranch): Don't insert ENDBR instruction at function entrance if function is only diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index da360da..82a6360 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -2492,6 +2492,13 @@ useful to verify the full @option{-fcompare-debug} testing coverage. It must be used along with @code{bootstrap-debug-lean} and @code{bootstrap-debug-lib}. +@item @samp{bootstrap-cet} +This option enables Intel CET for host tools during bootstrapping. +@samp{BUILD_CONFIG=bootstrap-cet} is equivalent to adding +@option{-fcf-protection -mcet} to @samp{BOOT_CFLAGS}. This option +assumes that the host supports Intel CET (e.g. GNU assembler version +2.30 or later). + @item @samp{bootstrap-time} Arranges for the run time of each program started by the GCC driver, built in any stage, to be logged to @file{time.log}, in the top level of -- cgit v1.1