------- Comment #13 from bergner at vnet dot ibm dot com 2006-09-22 16:56 ------- Yet another test case from Anton we don't catch. Will they never end?!?! ;)
int indexedload(int *base, int len) { int i, sum = 0; for (i=0; i < len; i++) sum += base[i]; return sum; } In this case, LEGITIMIZE_ADDRESS cannot help, because it is never passed an operand that includes the base pointer. Instead, we're passed a pseudo register that was set previously to calculation using the base pointer, so in this case, we can't propagate the REG_POINTER flag. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28690