<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have no idea, apparently so?<div><br></div><div>-Chris</div><div><br><div><div>On Jun 19, 2010, at 8:02 AM, Diego Iastrubni wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">... wait, ccache support clang? that's good news :)<br><br><div class="gmail_quote">On Sat, Jun 19, 2010 at 8:30 AM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">A user who uses ccache reported that it is apparently doing something that causes it to emit tons of "argument unused during compilation warnings".  A typical invocation is something like this:<br>


<br>
ccache clang++ -m32 -mmmx -msse  -pipe -march=pentium-m -I/usr/include/malloc -fasm-blocks -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -Wno-invalid-offsetof -Wno-unknown-pragmas -Wno-unused-parameter -Wno-reorder -Wno-unused-value -Wno-missing-field-initializers -Wno-sign-compare -Wno-invalid-offsetof -Wno-write-strings -gdwarf-2 -g2 -O3 -fno-strict-aliasing -DNDEBUG -DGNUC -DPOSIX -D_OSX -DOSX -Ifoo -c foo.cpp -o foo.o<br>


<br>
which produces warnings like this:<br>
clang: warning: argument unused during compilation: '-c'<br>
clang: warning: argument unused during compilation: '-I/usr/include/malloc'<br>
clang: warning: argument unused during compilation: '-isysroot /Developer/SDKs/MacOSX10.5.sdk'<br>
clang: warning: argument unused during compilation: '-DNDEBUG'<br>
clang: warning: argument unused during compilation: '-DGNUC'<br>
clang: warning: argument unused during compilation: '-DPOSIX'<br>
clang: warning: argument unused during compilation: '-D_OSX'<br>
clang: warning: argument unused during compilation: '-DOSX'<br>
clang: warning: argument unused during compilation: '-Ifoo'<br>
<br>
etc.  This is apparently local to something that ccache is doing: it must be running clang multiple times, one with some funny options.  The user was alarmed because he didn't think that clang had implemented such exotic options as -D and -I :) due to these warnings.<br>


<br>
The question is: is this a ccache bug, or should we hack clang somehow to work better with ccache?  I don't use ccache or know anything about it, so I don't really have an opinion here.<br>
<br>
-Chris<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>
</blockquote></div><br></div></body></html>