Re: [PATCH v2] x86: Disable SSE on unwind-c.c and unwind-dw2.c

2022-03-07 Thread H.J. Lu via Gcc-patches
On Mon, Mar 7, 2022 at 6:23 AM Jakub Jelinek wrote: > > On Mon, Mar 07, 2022 at 05:57:40AM -0800, H.J. Lu via Gcc-patches wrote: > > --- a/gcc/config/i386/i386.cc > > +++ b/gcc/config/i386/i386.cc > > @@ -9444,9 +9444,8 @@ ix86_expand_epilogue (int style) > > rtx sa = EH_RETURN_STACKADJ_RT

Re: [PATCH v2] x86: Disable SSE on unwind-c.c and unwind-dw2.c

2022-03-07 Thread Jakub Jelinek via Gcc-patches
On Mon, Mar 07, 2022 at 05:57:40AM -0800, H.J. Lu via Gcc-patches wrote: > --- a/gcc/config/i386/i386.cc > +++ b/gcc/config/i386/i386.cc > @@ -9444,9 +9444,8 @@ ix86_expand_epilogue (int style) > rtx sa = EH_RETURN_STACKADJ_RTX; > rtx_insn *insn; > > - /* %ecx can't be used

[PATCH v2] x86: Disable SSE on unwind-c.c and unwind-dw2.c

2022-03-07 Thread H.J. Lu via Gcc-patches
Since eh_return doesn't work with stack realignment, disable SSE on unwind-c.c and unwind-dw2.c to avoid stack realignment with the 4-byte incoming stack to avoid SSE usage which is caused by commit 609e8c492d62d92465460eae3d43dfc4b2c68288 Author: H.J. Lu Date: Sat Feb 26 14:17:23 2022 -0800