[Bug c++/64110] ICE: Max. number of generated reload insns per insn is achieved (90)

2014-11-28 Thread thiago at kde dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64110

--- Comment #1 from Thiago Macieira thiago at kde dot org ---
Created attachment 34138
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34138action=edit
Preprocessed sources for the build error


[Bug c++/64110] ICE: Max. number of generated reload insns per insn is achieved (90)

2014-11-28 Thread thiago at kde dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64110

--- Comment #2 from Thiago Macieira thiago at kde dot org ---
creduce reduced to the following testcase:


class A {
public:
  short m_fn1() { return ucs; }
  short ucs;
};

class C {
public:
  int m_fn2();
} a;
A *b;
C c;
void fn1(A p1) {
  while (a) {
int d = c.m_fn2();
for (int i; i  d; ++i)
  b++-m_fn1() = p1.m_fn1();
  }
}



[Bug c++/64110] ICE: Max. number of generated reload insns per insn is achieved (90)

2014-11-28 Thread thiago at kde dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64110

--- Comment #3 from Thiago Macieira thiago at kde dot org ---
This reduced testcase starts (apparently) with an uninitialised int i, but the
same problem happens if you initialise to 0 (for (int i = 0; i  d; ++i))