<div dir="ltr">Ah, right, sorry I didn't reproduce your steps exactly - thanks for highlighting the save-temps aspect.<br><br>Yeah, testing this with clang trunk (which, on godbolt, is built with assertions enabled) this crashes the compiler. Something about frame-larger-than doesn't work with save-temps, which doesn't super surprise me, -Wframe-larger-than with -fsyntax-only doesn't produce any warning (frame-larger-than is implemented in the code generation pipeline, as much as we try to avoid doing that for warnings in clang, this one's an exception).<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 25, 2020 at 2:15 PM Ohad Alali <<a href="mailto:ohad.alali@gmail.com">ohad.alali@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="rtl"><div dir="ltr">Thanks for your response.</div><div dir="ltr">I've opened your link and it's seems that clang (trunk) is not handle the flag -save-temps=obj. compilation with -save-temps: <a href="https://godbolt.org/z/-neaMs" target="_blank">https://godbolt.org/z/-neaMs</a></div><div dir="ltr">When changing the compiler to clang v0.8, same behaviour as describe before.</div><div dir="ltr">with flag -save-temps=obj: <a href="https://godbolt.org/z/gzpFGD" target="_blank">https://godbolt.org/z/gzpFGD</a></div><div dir="ltr">without flag -save-temps=obj: <a href="https://godbolt.org/z/5uABvL" target="_blank">https://godbolt.org/z/5uABvL</a></div><div dir="ltr"><br></div><div dir="ltr">Thanks,<br>Ohad</div><div dir="ltr"><br></div><div dir="ltr"><br></div></div><br><div class="gmail_quote"><div dir="rtl" class="gmail_attr">‫בתאריך שבת, 25 בינו׳ 2020 ב-8:16 מאת ‪David Blaikie‬‏ <‪<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>‬‏>:‬<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Works for me: <a href="https://godbolt.org/z/kMijQ7" target="_blank">https://godbolt.org/z/kMijQ7</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 5, 2020 at 6:45 AM Ohad Alali via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="rtl"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">I'm compiling my project with clang version 7.0.0-3.</div><div dir="ltr">I added compilation flag frame-larger-than in order to warning using more than 1024 bytes.</div><div dir="ltr"><br></div><div dir="ltr">clang indeed warning as expected, but when I added -Werror in order to treat the warning as error clang ignore this flag and it stays warning.</div><div dir="ltr"><br></div><div dir="ltr">the compilation flags include also save-temps=obj, when I remove this flag the warning treated as error.</div><div dir="ltr"><br></div><div dir="ltr">Does save-temps flag should be related to -Werror or -Wframe-larger-than?</div><div dir="ltr"><br></div><div dir="ltr">full compilation flags:  </div><div dir="ltr">clang++-7 -D_SYS_LINUX_ -D_HOSTSYS_LINUX_ -D_CPU_  -D_SYS64_ -D_DEBUG_ -O2  -Wframe-larger-than=1024 -MD -Wall -save-temps=obj -Wextra -Wshadow -Werror -g -ggdb -fPIC<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks,<br>Ohad</div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>