https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in                      |[12 Regression] ICE in
                   |ix86_expand_epilogue, at    |ix86_expand_epilogue, at
                   |config/i386/i386.c:9362     |config/i386/i386.c:9362
                   |since                       |
                   |r12-3433-ga25e0b5e6ac8a77a  |
           Keywords|                            |ice-on-valid-code,
                   |                            |needs-bisection
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-02-03
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase without ftrivial-auto-var-init.


struct _Unwind_Context
{
  void *ra;
  char array[48];
};

extern long uw_install_context_1 (struct _Unwind_Context *);

void
_Unwind_RaiseException (void)
{
  struct _Unwind_Context this_context, cur_context;
  __builtin_memset(&this_context, 55, sizeof(this_context));
  long offset = uw_install_context_1 (&this_context);
  __builtin_memcpy (&this_context, &cur_context,
                    sizeof (struct _Unwind_Context));
  void *handler = __builtin_frob_return_addr ((&cur_context)->ra);
  uw_install_context_1 (&cur_context);
  __builtin_eh_return (offset, handler);
}

--- CUT ---
The options used with the above is just "-mavx512f -m32".

Reply via email to