------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-02 16:49 ------- Reduced testcase (this one fails at -O2 also): class SHA256 { unsigned m_digest; unsigned long long m_count; unsigned char _buffer[64]; static void Transform (unsigned * data); void WriteByteBlock (unsigned t); }; void SHA256::WriteByteBlock (unsigned t) { unsigned data32[16]; Transform (data32); unsigned long long lenInBits = m_count; if (t != (64 - 8)) return; for (int i = 0; i < 2; i++) _buffer[t++] = (unsigned char)lenInBits; } --------- Complete unrolling of the only loop there is causing the ICE.
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-09-02 16:49:28 date| | Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28937