Fix -freorder-blocks-and-partition glitch with Windows SEH (continued)
commitbc8d6c60137f8bbf173b86ddf31b15d7ba2a33dd
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 30 Nov 2021 09:17:09 +0000 (30 10:17 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 30 Nov 2021 09:18:55 +0000 (30 10:18 +0100)
treededfe7471450fe0bd1adb6a941627b4fd5c3eeb3
parent7abcc9ca20d4e17deabb308b5f483aaccc3dc02c
Fix -freorder-blocks-and-partition glitch with Windows SEH (continued)

This fixes a thinko in the fix for the -freorder-blocks-and-partition
glitch with SEH on 64-bit Windows:
  https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565208.html

Even if no exceptions are active, e.g. in C, we need to consider calls.

gcc/
PR target/103274
* config/i386/i386.c (ix86_output_call_insn): Beef up comment about
nops emitted with SEH.
* config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
the cold section, emit a nop before the directive if the previous
active instruction is a call.
gcc/config/i386/i386.c
gcc/config/i386/winnt.c