Go to file
hjl d59cfa9a40 Define __CET__ for -fcf-protection and remove -mibt
With revision 259496:

commit b1384095a7
Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Apr 19 15:15:04 2018 +0000

    x86: Enable -fcf-protection with multi-byte NOPs

-mibt does nothing and can be removed.  Define __CET__ to indicate level
protection with -fcf-protection:

(__CET__ & 1) != 0: -fcf-protection=branch or -fcf-protection=full
(__CET__ & 2) != 0: -fcf-protection=return or -fcf-protection=full

gcc/

	PR target/85469
	* common/config/i386/i386-common.c (OPTION_MASK_ISA_IBT_SET):
	Removed.
	(OPTION_MASK_ISA_IBT_UNSET): Likewise.
	(ix86_handle_option): Don't handle OPT_mibt.
	* config/i386/cet.h: Check __CET__ instead of __IBT__ and
	__SHSTK__.
	* config/i386/driver-i386.c (host_detect_local_cpu): Remove
	has_ibt and ibt.
	* config/i386/i386-c.c (ix86_target_macros_internal): Don't
	check OPTION_MASK_ISA_IBT nor flag_cf_protection.
	(ix86_target_macros): Define __CET__ with flag_cf_protection
	for -fcf-protection.
	* config/i386/i386.c (isa2_opts): Remove -mibt.
	* config/i386/i386.h (TARGET_IBT): Removed.
	(TARGET_IBT_P): Likewise.
	(ix86_valid_target_attribute_inner_p): Don't check OPT_mibt.
	* config/i386/i386.md (nop_endbr): Don't check TARGET_IBT.
	* config/i386/i386.opt (mcet): Update help message.
	(mshstk): Likewise.
	(mibt): Removed.
	* doc/invoke.texi: Remove -mibt.  Document __CET__.  Document
	-mcet as an alias for -mshstk.

gcc/testsuite/

	PR target/85469
	* gcc.target/i386/pr85044.c (dg-options): Remove -mibt.
	* gcc.target/i386/sse-26.c (dg-options): Remove -mno-ibt.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259522 138bc75d-0d04-0410-961f-82ee72b054a4
2018-04-20 13:30:13 +00:00
INSTALL
config * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
contrib test_summary: handle single quotes 2018-03-21 08:47:12 +00:00
fixincludes PR jit/85384 2018-04-18 09:46:58 +00:00
gcc Define __CET__ for -fcf-protection and remove -mibt 2018-04-20 13:30:13 +00:00
gnattools Update copyright years. 2018-01-03 10:03:58 +00:00
gotools * Makefile.am (check-runtime): Pass -test.timeout 2018-03-21 15:46:37 +00:00
include [IEPM] Introduce inline entry point markers 2018-02-09 02:22:11 +00:00
intl Require ngettext in test of system gettext implementation 2017-11-07 04:54:01 +00:00
libada PR jit/85384 2018-04-18 09:46:58 +00:00
libatomic * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libbacktrace * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libcc1 PR jit/85384 2018-04-18 09:46:58 +00:00
libcpp * es.po: Update. 2018-03-27 22:31:08 +00:00
libdecnumber Do not use bit and for conjunction of predicates (PR c/81272). 2018-02-19 18:29:20 +00:00
libffi PR jit/85384 2018-04-18 09:46:58 +00:00
libgcc libgcc/CET: Skip signal frames when unwinding shadow stack 2018-04-19 17:05:39 +00:00
libgfortran PR85463 '[nvptx] "exit" in offloaded region doesn't terminate process' 2018-04-19 08:53:38 +00:00
libgo os/signal: disable loading of history during test 2018-04-17 23:55:17 +00:00
libgomp PR85463 '[nvptx] "exit" in offloaded region doesn't terminate process' 2018-04-19 08:53:38 +00:00
libhsail-rt PR jit/85384 2018-04-18 09:46:58 +00:00
libiberty Fix gcc.dg/debug/pr41893-1.c with Solaris ld (PR lto/81968) 2018-04-13 08:02:15 +00:00
libitm * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libmpx * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libobjc * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
liboffloadmic PR jit/85384 2018-04-18 09:46:58 +00:00
libquadmath * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libsanitizer * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libssp * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libstdc++-v3 * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
libvtv * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace 2018-04-19 07:45:51 +00:00
lto-plugin PR jit/85384 2018-04-18 09:46:58 +00:00
maintainer-scripts 2018-01-25 Richard Biener <rguenther@suse.de> 2018-01-25 10:22:38 +00:00
zlib 2017-03-15 Yaakov Selkowitz <yselkowitz@redhat.com> 2017-03-15 05:01:23 +00:00
.dir-locals.el
.gitattributes add basic .gitattributes files to notice whitespace issues 2016-04-23 02:37:43 +00:00
.gitignore .gitignore: Ignore in-tree prerequisites. 2016-09-09 21:20:55 +00:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog 2018-04-10 Aaron Sawdey <acsawdey@linux.ibm.com> 2018-04-10 21:57:12 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS 2018-04-10 Aaron Sawdey <acsawdey@linux.ibm.com> 2018-04-10 21:57:12 +00:00
Makefile.def Remove Cilk Plus support. 2017-11-28 10:35:37 +00:00
Makefile.in Remove Cilk Plus support. 2017-11-28 10:35:37 +00:00
Makefile.tpl Fix profiledbootstrap. 2017-10-27 13:13:05 +00:00
README
compile
config-ml.in <toplevel> 2016-11-15 16:34:02 +00:00
config.guess * config.guess: Import latest version. 2018-01-03 04:25:18 +00:00
config.rpath
config.sub * config.guess: Import latest version. 2018-01-03 04:25:18 +00:00
configure WebAssembly: Disable subdirectory configuration for unsupported LD 2018-02-13 13:01:33 +00:00
configure.ac WebAssembly: Disable subdirectory configuration for unsupported LD 2018-02-13 13:01:33 +00:00
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
symlink-tree
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.