qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH fix for 2.1] makefile: Fix tools compile


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH fix for 2.1] makefile: Fix tools compile
Date: Tue, 01 Jul 2014 10:26:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Il 01/07/2014 10:19, Peter Maydell ha scritto:
> I think something like "double x; int f(void) {return isnan(sin(x));}"
> should be bullet proof.
This is a compile_prog test, though -- the compiler could spot
that x and f are both unused, since it has the entire program
in hand. My suggestion would be:

int main(int argc, char **argv) { return isnan(sin((double)argc)); }

Ok, v2 of the pull request is on the way.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]