r200237 - intrin.h: include setjmp.h to get a jmp_buf definition
Reid Kleckner
reid at kleckner.net
Mon Jan 27 11:14:09 PST 2014
Author: rnk
Date: Mon Jan 27 13:14:09 2014
New Revision: 200237
URL: http://llvm.org/viewvc/llvm-project?rev=200237&view=rev
Log:
intrin.h: include setjmp.h to get a jmp_buf definition
This fixes an error on our _setjmpex declaration for 64-bit code and
allows us to declare _setjmp for 32-bit code.
Modified:
cfe/trunk/lib/Headers/Intrin.h
Modified: cfe/trunk/lib/Headers/Intrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/Intrin.h?rev=200237&r1=200236&r2=200237&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/Intrin.h (original)
+++ cfe/trunk/lib/Headers/Intrin.h Mon Jan 27 13:14:09 2014
@@ -32,6 +32,8 @@
/* First include the standard intrinsics. */
#include <x86intrin.h>
+#include <setjmp.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -277,10 +279,7 @@ unsigned __int64 __cdecl _rotr64(unsigne
static __inline__
unsigned char _rotr8(unsigned char _Value, unsigned char _Shift);
int _sarx_i32(int, unsigned int);
-
-/* FIXME: Need definition for jmp_buf.
- int __cdecl _setjmp(jmp_buf); */
-
+int __cdecl _setjmp(jmp_buf);
unsigned int _shlx_u32(unsigned int, unsigned int);
unsigned int _shrx_u32(unsigned int, unsigned int);
void _Store_HLERelease(long volatile *, long);
More information about the cfe-commits
mailing list