[m-rev.] diff: define MR_NO_RETURN for clang

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Aug 29 15:45:25 AEST 2011


Branches: main, 11.07

runtime/mercury_std.h:
 	Define MR_NO_RETURN for clang.

Julien.

Index: runtime/mercury_std.h
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_std.h,v
retrieving revision 1.34
diff -u -r1.34 mercury_std.h
--- runtime/mercury_std.h	11 Aug 2011 05:27:18 -0000	1.34
+++ runtime/mercury_std.h	29 Aug 2011 05:18:27 -0000
@@ -194,7 +194,7 @@

  /* A macro for declaring functions that never return */

-#if MR_GNUC
+#if defined(MR_GNUC) || defined(MR_CLANG)
    #define MR_NO_RETURN __attribute__((noreturn))
  #else
    #define MR_NO_RETURN

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list