[svn:parrot] r41170 - trunk/include/parrot

petdance at svn.parrot.org petdance at svn.parrot.org
Wed Sep 9 04:26:03 UTC 2009


Author: petdance
Date: Wed Sep  9 04:25:57 2009
New Revision: 41170
URL: https://trac.parrot.org/parrot/changeset/41170

Log:
handle clang compiler directives

Modified:
   trunk/include/parrot/compiler.h

Modified: trunk/include/parrot/compiler.h
==============================================================================
--- trunk/include/parrot/compiler.h	Wed Sep  9 04:15:03 2009	(r41169)
+++ trunk/include/parrot/compiler.h	Wed Sep  9 04:25:57 2009	(r41170)
@@ -40,7 +40,11 @@
 #  ifdef _MSC_VER
 #    define __attribute__noreturn__         __declspec(noreturn)
 #  else
-#    define __attribute__noreturn__         __attribute__((__noreturn__))
+#    if __clang__
+#      define __attribute__noreturn__         __attribute__((analyzer_noreturn))
+#    else
+#      define __attribute__noreturn__         __attribute__((__noreturn__))
+#    endif
 #  endif
 #endif
 #ifdef HASATTRIBUTE_PURE


More information about the parrot-commits mailing list