diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2019-05-31 23:59:16 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2019-05-31 16:59:16 -0700 |
commit | 02ed904927f5b2ef1538ff44b504183f4cfe9ff0 (patch) | |
tree | c0f983b10c380cc8a2c896014347c7afc9f432b1 /gcc/fortran/trans-expr.c | |
parent | d030d4c5a4491c9d9827f67c94a4c914f6d3eb67 (diff) | |
download | gcc-02ed904927f5b2ef1538ff44b504183f4cfe9ff0.zip gcc-02ed904927f5b2ef1538ff44b504183f4cfe9ff0.tar.gz gcc-02ed904927f5b2ef1538ff44b504183f4cfe9ff0.tar.bz2 |
i386: Don't insert ENDBR after NOTE_INSN_DELETED_LABEL
NOTE_INSN_DELETED_LABEL is used to mark what used to be a 'code_label',
but was not used for other purposes than taking its address which cannot
be used as target for indirect jumps.
Tested on Linux/x86-64 with -fcf-protection.
For x86-64 libc.so on glibc master branch (commit f43b8dd55588c3),
Before: 2961 endbr64
After: 2943 endbr64
gcc/
PR target/89355
* config/i386/i386-features.c (rest_of_insert_endbranch): Remove
NOTE_INSN_DELETED_LABEL check.
gcc/testsuite/
PR target/89355
* gcc.target/i386/cet-label-3.c: New test.
* gcc.target/i386/cet-label-4.c: Likewise.
* gcc.target/i386/cet-label-5.c: Likewise.
Co-Authored-By: Hongtao Liu <hongtao.liu@intel.com>
From-SVN: r271828
Diffstat (limited to 'gcc/fortran/trans-expr.c')
0 files changed, 0 insertions, 0 deletions