<div>Hi</div><div>š</div><div>I have a problem with clang and the -mx32 flag. I noticed this problem with corruption on the stack and I narrowed it down to initialising an array thus:</div><div>š</div><div><p>% cat > 0.c<br />void foo() {<br /> unsigned char bar[20] = { 0 };<br />}</p><p><br />%clang -m32 -c 0.c <br />% nm 0.o <br />00000000šT foo<br /> U memset</p><p>###########################################################<br />% clang -mx32 -c 0.c<br />% nm 0.o <br />00000000 T foo</p><p>-> Missing call to memset</p><p>###############################################################</p><p><br />% clang -m64 -c 0.c <br />% nm 0.o <br />0000000000000000 T foo<br /> U memset</p><p>š</p><p>The same thing happens with clangš3.7.1 and 3.9</p><p>š</p><p>Cheers</p><p>š</p><p><br />Stoned Pete</p><p>š</p></div>