On Wed, 2011-01-12 at 13:52 +0000, Tony Finch wrote:
>
> which is clearly bogus because on non-gcc it leads to syntax errors in
> many macros like the following and the ones I broke in memcheck.h
>
> #define RUNNING_ON_VALGRIND __extension__ \
> ({unsigned int _qzz_res; \
> VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0 /* if not */, \
> VG_USERREQ__RUNNING_ON_VALGRIND, \
> 0, 0, 0, 0, 0); \
> _qzz_res; \
> })
>
> I'm not immediately sure how to fix it properly.
Can we turn the ({ ... }) extension into a static inline function? Or is
that not sufficiently portable either?
--
David Woodhouse Open Source Technology Centre
[email protected] Intel Corporation
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users