[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/9] tests: cris: force inlining
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 1/9] tests: cris: force inlining |
Date: |
Thu, 8 Sep 2016 13:21:01 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 09/08/2016 01:06 PM, Peter Maydell wrote:
>> +++ b/tests/tcg/cris/sys.h
>> @@ -3,6 +3,8 @@
>> #define STRINGIFY(x) #x
>> #define TOSTRING(x) STRINGIFY(x)
>>
>> +#define inline inline __attribute__((always_inline))
>> +
>
> I think redefining C keywords is generally a bad idea.
> Can you instead define an "always_inline" macro and
> use it where necessary?
In fact, commit b11d029b is an instance where compilation failed weirdly
because we redefined inline. I agree that a separate macro name, added
on where desired, rather than redefining 'inline' itself, is desirable.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 5/9] target-cris: sync CC state at load/stores., (continued)