qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: RFC: fix for random Qemu crashes


From: Ben Pfaff
Subject: [Qemu-devel] Re: RFC: fix for random Qemu crashes
Date: Fri, 16 Nov 2007 18:58:45 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"J. Mayer" <address@hidden> writes:

> On Fri, 2007-11-16 at 21:32 +0100, andrzej zaborowski wrote:
>> I think a line like
>> 
>> #define inline __attribute__ (( always_inline )) inline
>> 
>> in dyngen-exec.h should be 
>
> As I already pointed it in the first message of the thread, this kind of
> define would expand recursivelly, [...]

No.  A macro is not expanded within its own expansion.  See ISO
C99:

     6.10.3.4  Rescanning and further replacement
[...]
2    If the name of the macro being replaced is found during this
     scan of the replacement list (not including the rest of the
     source file's preprocessing tokens), it is not replaced.

If it still bothers you, you could write it as
        #define inline __attribute__ (( always_inline )) __inline__
since GCC accepts __inline__ as a synonym for inline.
-- 
Ben Pfaff 
http://benpfaff.org





reply via email to

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