Re: [Qemu-devel] [PATCH v3 4/4] configure: Add workaround for ccache and clang

2015-03-23 Thread John Snow
On 03/23/2015 11:14 AM, Peter Maydell wrote: On 23 March 2015 at 14:52, John Snow wrote: On 03/23/2015 09:11 AM, Peter Maydell wrote: This is really working around a bug in either ccache or in the way Fedora has configured ccache, so I kind of feel it ought to be dealt with there. However I

Re: [Qemu-devel] [PATCH v3 4/4] configure: Add workaround for ccache and clang

2015-03-23 Thread Peter Maydell
On 23 March 2015 at 14:52, John Snow wrote: > On 03/23/2015 09:11 AM, Peter Maydell wrote: >> This is really working around a bug in either ccache or >> in the way Fedora has configured ccache, so I kind of >> feel it ought to be dealt with there. However I don't >> object too much to our includin

Re: [Qemu-devel] [PATCH v3 4/4] configure: Add workaround for ccache and clang

2015-03-23 Thread John Snow
On 03/23/2015 09:11 AM, Peter Maydell wrote: On 19 March 2015 at 19:01, John Snow wrote: Test if ccache is interfering with our life, and disable its habit of trying to compile already pre-processed versions of code if so. In particular, clang has different semantic warnings based on if the

Re: [Qemu-devel] [PATCH v3 4/4] configure: Add workaround for ccache and clang

2015-03-23 Thread Peter Maydell
On 19 March 2015 at 19:01, John Snow wrote: > Test if ccache is interfering with our life, and > disable its habit of trying to compile already pre-processed > versions of code if so. > > In particular, clang has different semantic warnings based on > if the warning arose from a macro or not. By t

Re: [Qemu-devel] [PATCH v3 4/4] configure: Add workaround for ccache and clang

2015-03-23 Thread Stefan Hajnoczi
On Thu, Mar 19, 2015 at 03:01:37PM -0400, John Snow wrote: > + > +# check if ccache is interfering with > +# semantic analysis of macros > + > +ccache=no > +cat > $TMPC << EOF > +static const int Z = 1; > +#define fn() ({ Z; }) > +#define TAUT(X) ((X) == Z) >

[Qemu-devel] [PATCH v3 4/4] configure: Add workaround for ccache and clang

2015-03-19 Thread John Snow
Test if ccache is interfering with our life, and disable its habit of trying to compile already pre-processed versions of code if so. In particular, clang has different semantic warnings based on if the warning arose from a macro or not. By trying to build preprocessed versions of code, we get mor