qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v6 09/12] target/hexagon: import parser for idef-parser


From: Richard Henderson
Subject: Re: [PATCH v6 09/12] target/hexagon: import parser for idef-parser
Date: Wed, 8 Sep 2021 08:35:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 9/7/21 8:08 PM, Taylor Simpson wrote:
diff --git a/target/hexagon/idef-parser/parser-helpers.h
b/target/hexagon/idef-parser/parser-helpers.h
+#define OUT_IMPL(c, locp, x)                    \
+    _Generic(*x,                                \
+        char:      str_print,                   \
+        uint8_t:   uint8_print,                 \
+        uint64_t:  uint64_print,                \
+        int:       int_print,                   \
+        unsigned:  uint_print,                  \
+        HexValue:  rvalue_out,                  \
+        default:   out_assert                   \
+    )(c, locp, x);

Unless something has changed, qemu requires building with GCC 4.8 which is old 
enough that it doesn't support C11 _Generic.

Something has changed.  The minimum is now 7.5, and we use -std=gnu11 now.
We also use _Generic in several other places.


r~



reply via email to

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