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

petdance at svn.parrot.org petdance at svn.parrot.org
Wed Sep 9 04:07:50 UTC 2009


Author: petdance
Date: Wed Sep  9 04:07:45 2009
New Revision: 41168
URL: https://trac.parrot.org/parrot/changeset/41168

Log:
improvements for the clang noreturn

Modified:
   trunk/include/parrot/compiler.h

Modified: trunk/include/parrot/compiler.h
==============================================================================
--- trunk/include/parrot/compiler.h	Tue Sep  8 23:18:43 2009	(r41167)
+++ trunk/include/parrot/compiler.h	Wed Sep  9 04:07:45 2009	(r41168)
@@ -40,7 +40,10 @@
 #  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
 #ifdef HASATTRIBUTE_PURE


More information about the parrot-commits mailing list