]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Remove "%!" before ret
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Nov 2021 19:41:12 +0000 (11:41 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Nov 2021 21:29:01 +0000 (13:29 -0800)
commit8e410de43ce039bbe08f1e0195e3b6ec24f68cae
tree02c7632c81adfbb02f39b6ed74c928f892922223
parent425369bf3068a9f840d1c2f04a4d4c38e924d4dc
x86: Remove "%!" before ret

Before MPX was removed, "%!" was mapped to

        case '!':
          if (ix86_bnd_prefixed_insn_p (current_output_insn))
            fputs ("bnd ", file);
          return;

After CET was added and MPX was removed, "%!" was mapped to

       case '!':
          if (ix86_notrack_prefixed_insn_p (current_output_insn))
            fputs ("notrack ", file);
          return;

ix86_notrack_prefixed_insn_p always returns false on ret since the
notrack prefix is only for indirect branches.  Remove the unused "%!"
before ret.

PR target/103307
* config/i386/i386.c (ix86_code_end): Remove "%!" before ret.
(ix86_output_function_return): Likewise.
* config/i386/i386.md (simple_return_pop_internal): Likewise.
gcc/config/i386/i386.c
gcc/config/i386/i386.md