[Bug target/83409] arc: "internal compiler error: in extract_constrain_insn" with -O3

arnd at linaro dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 20 10:28:00 GMT 2017


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

Arnd Bergmann <arnd at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-reduction             |

--- Comment #1 from Arnd Bergmann <arnd at linaro dot org> ---
Reduced to:

$ arc-elf-gcc-7.2.1  -O2 -c scatterlist.i

struct scatterlist {
  long sg_magic;
  long page_link;
  int offset;
};
int a, b;
int fn2(void);
struct scatterlist g;
void fn1(void) {
  do {
    struct scatterlist *c = &g;
    a = 0;
    for (; a < b; a++)
      c[a].sg_magic = 1;
    if (fn2())
      while (10)
        ;
  } while (1);
}


More information about the Gcc-bugs mailing list