Re: [Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-11-05 Thread Stefan Weil
Am 05.11.2013 19:03, schrieb Andreas Färber: > Am 05.11.2013 18:52, schrieb Stefan Weil: >> Am 31.10.2013 20:41, schrieb Jan Kiszka: >>> On 2013-10-31 20:31, Stefan Weil wrote: Reloading of local variables after sigsetjmp is only needed for some buggy compilers. The code which s

Re: [Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-11-05 Thread Andreas Färber
Am 05.11.2013 18:52, schrieb Stefan Weil: > Am 31.10.2013 20:41, schrieb Jan Kiszka: >> On 2013-10-31 20:31, Stefan Weil wrote: >>> Reloading of local variables after sigsetjmp is only needed for some >>> buggy compilers. >>> >>> The code which should reload these variables causes compiler warnings

Re: [Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-11-05 Thread Peter Maydell
On 5 November 2013 17:52, Stefan Weil wrote: > Am 31.10.2013 20:41, schrieb Jan Kiszka: >> On 2013-10-31 20:31, Stefan Weil wrote: >>> Reloading of local variables after sigsetjmp is only needed for some >>> buggy compilers. >>> >>> The code which should reload these variables causes compiler warn

Re: [Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-11-05 Thread Stefan Weil
Am 31.10.2013 20:41, schrieb Jan Kiszka: > On 2013-10-31 20:31, Stefan Weil wrote: >> Reloading of local variables after sigsetjmp is only needed for some >> buggy compilers. >> >> The code which should reload these variables causes compiler warnings >> with gcc 4.7 when compiler optimizations are

Re: [Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-10-31 Thread Stefan Weil
Am 31.10.2013 20:41, schrieb Jan Kiszka: > On 2013-10-31 20:31, Stefan Weil wrote: >> Reloading of local variables after sigsetjmp is only needed for some >> buggy compilers. >> >> The code which should reload these variables causes compiler warnings >> with gcc 4.7 when compiler optimizations are

Re: [Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-10-31 Thread Jan Kiszka
On 2013-10-31 20:31, Stefan Weil wrote: > Reloading of local variables after sigsetjmp is only needed for some > buggy compilers. > > The code which should reload these variables causes compiler warnings > with gcc 4.7 when compiler optimizations are enabled: > > cpu-exec.c:204:15: error: > vari

[Qemu-devel] [PATCH v2] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-10-31 Thread Stefan Weil
Reloading of local variables after sigsetjmp is only needed for some buggy compilers. The code which should reload these variables causes compiler warnings with gcc 4.7 when compiler optimizations are enabled: cpu-exec.c:204:15: error: variable ‘cpu’ might be clobbered by ‘longjmp’ or ‘vfork’ [-