diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2016-01-27 22:37:41 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2016-01-27 22:37:41 (GMT) |
commit | 940d841e2ccf26c33c6acf82e44f5d13cadaee0d (patch) | |
tree | 0d74bfb46e8acb4f3ec476614dbf1595abd66281 | |
parent | 89a1ffd910fd619087168a7a960717c8e1fb2b70 (diff) | |
download | tcl-940d841e2ccf26c33c6acf82e44f5d13cadaee0d.zip tcl-940d841e2ccf26c33c6acf82e44f5d13cadaee0d.tar.gz tcl-940d841e2ccf26c33c6acf82e44f5d13cadaee0d.tar.bz2 |
FIXME: define HAVE_FAST_TSD to enable use of __thread in the allocator; this doesn't work as is on windows, or with oldish compilers ... good enough for my experiments.
-rw-r--r-- | TODO_DONE | 5 | ||||
-rw-r--r-- | unix/Makefile.in | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -63,4 +63,9 @@ should fail if the compiler is not optimizing the indirect calls between NRE_callback to jumps. +* INCOMPATIBILITY ... or at least, no attention paid to windows: we are + just assuming that __thread works (and using it in the memory allocator), + which is __declspec(thread) on windows, and thread_local in C11. + This is done by defining HAVE_FAST_TSD in the defaut build; can remove it + later on for the default - handy while developing. FIXME!! diff --git a/unix/Makefile.in b/unix/Makefile.in index de21f47..763fa1a 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -95,8 +95,8 @@ TCL_MODULE_PATH = @TCL_MODULE_PATH@ CFLAGS_WARNING = @CFLAGS_WARNING@ # The default switches for optimization or debugging -CFLAGS_DEBUG = @CFLAGS_DEBUG@ @CFLAGS_OPTIMIZE@ -CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ +CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ -DHAVE_FAST_TSD +CFLAGS_DEBUG = @CFLAGS_DEBUG@ $(CFLAGS_OPTIMIZE) # To change the compiler switches, for example to change from optimization to # debugging symbols, change the following line: |