aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2011-07-14 19:09:49 +0200
committergrischka <grischka>2011-07-14 19:09:49 +0200
commitdf4c0892f3fb5170042652cd648a29c94c3a2eca (patch)
tree0db41a085d08276f9804b4905949c60ff1f7500f /tcc.h
parent232650f8b3a786e82071c12a1ee8eea60684279a (diff)
downloadtinycc-df4c0892f3fb5170042652cd648a29c94c3a2eca.tar.gz
tinycc-df4c0892f3fb5170042652cd648a29c94c3a2eca.tar.bz2
tccrun: win64: add unwind function table for dynamic code
This works only when tcc.exe is compiled using MSC. MinGW does something in the startup code that defeats it.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tcc.h b/tcc.h
index eaf0e65..e1b27f2 100644
--- a/tcc.h
+++ b/tcc.h
@@ -566,10 +566,11 @@ struct TCCState {
int pe_subsystem;
unsigned long pe_file_align;
unsigned long pe_stack_size;
- struct pe_uw {
- Section *pdata;
- int sym_1, sym_2, offs_1;
- } pe_unwind;
+#ifdef TCC_TARGET_X86_64
+ Section *uw_pdata;
+ int uw_sym;
+ unsigned uw_offs;
+#endif
#endif
#ifndef TCC_TARGET_PE