Re: [Qemu-devel] [PATCH] fix compilation/link with clang, target-i386/cpu.c

2013-11-11 Thread Peter Maydell
On 11 November 2013 21:12, Andreas Tobler wrote: > On 11.11.13 22:02, Peter Maydell wrote: >> I think I would agree with the commenter in the bug report you >> reference (http://llvm.org/bugs/show_bug.cgi?id=17882) >> that this is not a clang bug. We shouldn't be relying on the >> compiler's dead

Re: [Qemu-devel] [PATCH] fix compilation/link with clang, target-i386/cpu.c

2013-11-11 Thread Andreas Tobler
On 11.11.13 22:02, Peter Maydell wrote: > On 11 November 2013 20:10, Andreas Tobler wrote: >> Paolo asked me to test and submit the below patch to fix compilation and >> link with clang. >> >> Paolo reduced the issue to a clang bug where dead code is not properly >> eliminated before linktime. (th

Re: [Qemu-devel] [PATCH] fix compilation/link with clang, target-i386/cpu.c

2013-11-11 Thread Peter Maydell
On 11 November 2013 20:10, Andreas Tobler wrote: > Paolo asked me to test and submit the below patch to fix compilation and > link with clang. > > Paolo reduced the issue to a clang bug where dead code is not properly > eliminated before linktime. (the clang bug ID: 17882) Thanks for the patch. H

[Qemu-devel] [PATCH] fix compilation/link with clang, target-i386/cpu.c

2013-11-11 Thread Andreas Tobler
Hello, Paolo asked me to test and submit the below patch to fix compilation and link with clang. Paolo reduced the issue to a clang bug where dead code is not properly eliminated before linktime. (the clang bug ID: 17882) Thanks, Andreas Signed-off-by: Andreas Tobler diff --git a/target-i38