IshwaraK
IshwaraK
Right, that resolved the issue. Somehow gcc don't need 'volatile' qualifier here, ideally pointers used inside setjmp()'s if-block potentially can be used in else-block after longjmp(). So, these pointers should...
An additional observation is that the miscompile disappears if t is explicitly initialized: T t = {0}; With that change, Clang -O3 no longer assigns the same stack slot to...
Optimizer thinks it can optimize away the runtime stack movement for, int repro_tiny_with_touch(int seed): void *old_top = STACK_ALLOC(0); Added __asm__ volatile("" : "+g"(old_top)); after '__builtin_alloca(0)', to force Clang to read...