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

            Bug ID: 88333
           Summary: ice in asan_emit_stack_protection, at asan.c:1574
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C code, derived from Linux kernel:

int a;
void b() {
  typeof(a) c;
  &c;
}

compiled with flags -fstack-protector-strong -fsanitize=kernel-address --param
asan-stack=1 in recent gcc trunk, does this:

bug487.c:2:6: internal compiler error: in asan_emit_stack_protection, at
asan.c:1574

The bug seems to first appear sometime between revision 266650 and 266700.

svn blame says

266664     marxin   gcc_assert (rz_buffer.m_shadow_bytes.is_empty ());

Reply via email to