https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105936
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction |inline-asm Summary|[10 Regression] internal |[10 Regression] ICE with |compiler error: in |inline-asm and TLS on |move_insn, at |x86_64 and -O2 in move_insn |haifa-sched.c:5463 | --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: typedef struct { unsigned short offset; unsigned short segment; } far_t; extern __thread int vm86u[8]; int int33_hooked; int is_revectored(void); void log_printf(void); far_t int33_unrevect(unsigned short gg) { far_t ret = {}; if (int33_hooked) return ret; if (is_revectored()) { log_printf(); __asm__ __volatile__("" : :"m" (vm86u[0])); } else { if (gg) log_printf(); } ret.segment = 0x0f000; ret.offset = 0xf847; return ret; }