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

            Bug ID: 94423
           Summary: [10 Regression] ICE in replace_uses_by with -O2
                    -fsanitize=object-size since r10-6332
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

void foo (void);
typedef struct { long buf[22]; } jmp_buf[1];
extern int sigsetjmp (jmp_buf, int) __attribute__ ((__nothrow__));
jmp_buf buf;

void
bar (int *c)
{
  while (*c)
    foo ();
  while (*c)
    sigsetjmp (buf, 0);
}

ICEs with -O2 -fsanitize=object-size starting with
r10-6332-g0de349f108d963219bd59aa374a68c15355236be

Reply via email to