qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 11/67] target/arm: Add stubs for aa32 decodetree


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 11/67] target/arm: Add stubs for aa32 decodetree
Date: Thu, 8 Aug 2019 08:43:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 8/8/19 4:41 AM, Aleksandar Markovic wrote:
>     +/*
>     + * Include the generated decoders.
>     + * Note that the T32 decoder reuses some of the trans_* functions
>     + * initially declared by the A32 decoder, which results in duplicate
>     + * declaration warnings.  Suppress them.
>     + */
>     +
>     +#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
>     +# pragma GCC diagnostic push
>     +# pragma GCC diagnostic ignored "-Wredundant-decls"
>     +# ifdef __clang__
>     +#  pragma GCC diagnostic ignored "-Wtypedef-redefinition"
>     +# endif
>     +#endif
>     +
> 
> 
> This looks more like a "band aid" solution rather than the right one.

What would the "right" solution be, would you say?

A couple of days ago Phil suggested moving these pragmas into the generated
code, so that this need not be done by hand in the several targets that use
multiple decoders.  That sounds reasonable to me.


r~



reply via email to

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