summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-07-07 12:46:07 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-24 04:12:06 -0700
commitf7d1e9901e1220e2604b71f0807c71f9cf4235ab (patch)
treeb6ee225b9792e0505e2ef10d510552842f9d9521
parentbf9129e6900e6f0ec7de8c043b5c4a87464f212b (diff)
downloadgcc-hjl/pr82659.tar.gz
Add bootstrap-cet.mk to bootstrap GCC with Intel CEThjl/pr82659
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.
-rw-r--r--config/bootstrap-cet.mk4
-rw-r--r--gcc/doc/install.texi7
2 files changed, 11 insertions, 0 deletions
diff --git a/config/bootstrap-cet.mk b/config/bootstrap-cet.mk
new file mode 100644
index 00000000000..f09193a6dea
--- /dev/null
+++ b/config/bootstrap-cet.mk
@@ -0,0 +1,4 @@
+# This option enables -fcf-protection -mcet for stage2 and stage3.
+
+STAGE2_CFLAGS += -fcf-protection -mcet
+STAGE3_CFLAGS += -fcf-protection -mcet
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index da360da1c50..82a63607b2d 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