------- Comment #5 from fabrice at mocana dot com 2009-02-06 04:24 ------- (In reply to comment #4) > Yes, initializing b[1] makes the problem go away in the snippet. I see this > problem in a much larger program but I can't reproduce it in a simple context. > Feel free to close the bug as invalid since there's a workaround for it, > although it impacts performance. More details on this: the problem happens only with -O3 in the large context. The workaround is to add a movq %3, %%eax before doing the mulq %4. That's why an invalid mul %eax was thought to be the problem. I thought the snippet acurately reproduced the problem but it seems unlikely at this point.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39116
