History

win64: align jmp_buf

grischka committed 17 years ago

Commit 09ac9fa1 parent 035918e1 file · +10 −0Browse files

Unified · Split

tcc.h+10−0
@@ -47,6 +47,9 @@ · 46 unmodified lines
4747 #define inline __inline
4848 #define inp next_inp
4949 #define dlclose FreeLibrary
50+#ifdef _MSC_VER
51+#define __aligned(n) __declspec(align(n))
52+#endif
5053 #ifdef _WIN64
5154 #define uplong unsigned long long
5255 #endif
@@ -65,6 +68,10 @@ · 12 unmodified lines
6568 #define uplong unsigned long
6669 #endif
6770
71+#ifndef __aligned
72+#define __aligned(n) __attribute__((aligned(n)))
73+#endif
74+
6875 #ifndef PAGESIZE
6976 #define PAGESIZE 4096
7077 #endif
@@ -473,6 +480,9 @@ struct TCCState { · 402 unmodified lines
473480 void *error_opaque;
474481 void (*error_func)(void *opaque, const char *msg);
475482 int error_set_jmp_enabled;
483+#ifdef _WIN64
484+ __aligned(16)
485+#endif
476486 jmp_buf error_jmp_buf;
477487 int nb_errors;
478488

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t