Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-11 Thread Kevin Wolf
Am 10.03.2014 um 19:21 hat Markus Armbruster geschrieben: Peter Maydell peter.mayd...@linaro.org writes: On 10 March 2014 13:36, Markus Armbruster arm...@redhat.com wrote: Peter Maydell peter.mayd...@linaro.org writes: Turns out my clang installation doesn't support -fsanitize=undefined:

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: On 8 March 2014 12:39, Peter Maydell peter.mayd...@linaro.org wrote: I've noticed that the tests/test-qapi-visit.c code provokes the following complaint from clang's -fsanitize=undefined undefined-behaviour checker when you run 'make check':

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: I've noticed that the tests/test-qapi-visit.c code provokes the following complaint from clang's -fsanitize=undefined undefined-behaviour checker when you run 'make check': tests/test-qapi-visit.c:462:33: runtime error: member access within

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Peter Maydell
On 10 March 2014 12:21, Markus Armbruster arm...@redhat.com wrote: My local clang doesn't complain. May I have your clang version, exact invocation and output? clang version 3.3 (tags/RELEASE_33/final) mkdir build/clang (cd build/clang '../../configure' '--cc=clang' '--cxx=clang++'

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: On 10 March 2014 12:21, Markus Armbruster arm...@redhat.com wrote: My local clang doesn't complain. May I have your clang version, exact invocation and output? clang version 3.3 (tags/RELEASE_33/final) mkdir build/clang (cd build/clang

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Peter Maydell
On 10 March 2014 13:36, Markus Armbruster arm...@redhat.com wrote: Peter Maydell peter.mayd...@linaro.org writes: Turns out my clang installation doesn't support -fsanitize=undefined: it lacks libclang_rt.san-x86_64.a. Test works fine without -fsanitize=undefined. I set a breakpoint on

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: On 10 March 2014 13:36, Markus Armbruster arm...@redhat.com wrote: Peter Maydell peter.mayd...@linaro.org writes: Turns out my clang installation doesn't support -fsanitize=undefined: it lacks libclang_rt.san-x86_64.a. Test works fine without

[Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-08 Thread Peter Maydell
I've noticed that the tests/test-qapi-visit.c code provokes the following complaint from clang's -fsanitize=undefined undefined-behaviour checker when you run 'make check': tests/test-qapi-visit.c:462:33: runtime error: member access within null pointer of type 'UserDefA' (aka 'struct UserDefA')

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-08 Thread Peter Maydell
On 8 March 2014 12:39, Peter Maydell peter.mayd...@linaro.org wrote: I've noticed that the tests/test-qapi-visit.c code provokes the following complaint from clang's -fsanitize=undefined undefined-behaviour checker when you run 'make check': tests/test-qapi-visit.c:462:33: runtime error: