This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/48343] [4.6/4.7 Regression] ICE compiling i586 linux-2.6.38/drivers/staging/wlan-ng/p80211wep.c: in form_sum, at reload.c:5338
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2011 13:46:43 +0000
- Subject: [Bug debug/48343] [4.6/4.7 Regression] ICE compiling i586 linux-2.6.38/drivers/staging/wlan-ng/p80211wep.c: in form_sum, at reload.c:5338
- Auto-submitted: auto-generated
- References: <bug-48343-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48343
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-30 13:46:26 UTC ---
Slightly more reduced testcase (and without uninitialized vars):
void foo (unsigned char *, unsigned char *);
void
test (unsigned int x, int y)
{
unsigned int i, j = 0, k;
unsigned char s[256], t[64];
foo (s, t);
t[0] = y;
for (i = 0; i < 256; i++)
{
j = (j + s[i] + t[i % x]) & 0xff;
k = i; i = j; j = k;
}
}
again, ICEs with -O3 -m32 -g, doesn't with -O3 -m32 -g
-fno-var-tracking-assignments.