[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] qemu-thread: add TLS wrappers
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] qemu-thread: add TLS wrappers |
Date: |
Thu, 04 Jul 2013 18:38:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Il 04/07/2013 18:27, Jan Kiszka ha scritto:
> This workaround causes troubles here with gcc-4.5.1:
>
> In file included from /data/qemu/include/exec/memory.h:29:0,
> from /data/qemu/include/exec/ioport.h:29,
> from /data/qemu/include/hw/hw.h:11,
> from /data/qemu/exec.c:30:
> /data/qemu/include/qemu/rcu.h:88:339: warning: redundant redeclaration of
> ‘dummy___LINE__’
> /data/qemu/include/exec/cpu-all.h:362:359: note: previous declaration of
> ‘dummy___LINE__’ was here
> /data/qemu/exec.c:77:24: warning: function declaration isn’t a prototype
> /data/qemu/exec.c:77:41: error: invalid storage class for function
> ‘tls_get_cpu_single_env’
> /data/qemu/exec.c:77:41: error: conflicting types for ‘tls_get_cpu_single_env’
> /data/qemu/include/exec/cpu-all.h:362:148: note: previous definition of
> ‘tls_get_cpu_single_env’ was here
Perhaps it helps to use glue(dummy, __LINE__).
Paolo
[Qemu-devel] [PATCH 1/2] exec: do not use qemu/tls.h, Stefan Hajnoczi, 2013/07/01