|
From: <sv...@va...> - 2011-03-15 08:05:23
|
Author: sewardj
Date: 2011-03-15 08:05:12 +0000 (Tue, 15 Mar 2011)
New Revision: 2109
Log:
Don't apply function attributes to a functional parameter when
being compiled by g++ 3.x, as that can't them. Fixes #265762.
Modified:
trunk/pub/libvex.h
Modified: trunk/pub/libvex.h
===================================================================
--- trunk/pub/libvex.h 2011-03-14 12:35:18 UTC (rev 2108)
+++ trunk/pub/libvex.h 2011-03-15 08:05:12 UTC (rev 2109)
@@ -394,15 +394,25 @@
/* Initialise the library. You must call this first. */
extern void LibVEX_Init (
+
/* failure exit function */
+# if __cplusplus == 1 && __GNUC__ && __GNUC__ <= 3
+ /* g++ 3.x doesn't understand attributes on function parameters.
+ See #265762. */
+# else
__attribute__ ((noreturn))
+# endif
void (*failure_exit) ( void ),
+
/* logging output function */
void (*log_bytes) ( HChar*, Int nbytes ),
+
/* debug paranoia level */
Int debuglevel,
+
/* Are we supporting valgrind checking? */
Bool valgrind_support,
+
/* Control ... */
/*READONLY*/VexControl* vcon
);
|