<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 />00000000T 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 clang3.7.1 and 3.9</p><p></p><p>Cheers</p><p></p><p><br />Stoned Pete</p><p></p></div>