[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#472867: more simplier loop (asm x86 corrected)



Florian Weimer a écrit :
* Cyprien LAPLACE:

Hum, well .. another sample test:

/* c.c */

extern void func(void*);

void test()
{
    register char (*foo)[32] = (typeof(foo))0-1024;
    register int index;
    for(index=0;index<1024;index++) {
        func(foo++);
    }
}

This is still undefined.  If you need machine address arithmetic, you
should use uintptr_t and hope for the best.

Does it mean that the loop indexed on an integer should become an infinite loop ?



Reply to: