[pypy-commit] stmgc use-gcc: tweaks
arigo
noreply at buildbot.pypy.org
Sun May 24 15:38:16 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: use-gcc
Changeset: r1775:66b63a0953f8
Date: 2015-05-24 13:38 +0000
http://bitbucket.org/pypy/stmgc/changeset/66b63a0953f8/
Log: tweaks
diff --git a/c7/demo/demo2.c b/c7/demo/demo2.c
--- a/c7/demo/demo2.c
+++ b/c7/demo/demo2.c
@@ -256,6 +256,7 @@
stm_rewind_jmp_leaveframe(&stm_thread_local, &rjbuf);
unregister_thread_local();
status = sem_post(&done); assert(status == 0);
+ (void)status;
return NULL;
}
@@ -293,6 +294,7 @@
rewind_jmp_buf rjbuf;
status = sem_init(&done, 0, 0); assert(status == 0);
+ (void)status;
stm_setup();
stm_register_thread_local(&stm_thread_local);
diff --git a/c7/stm/forksupport.c b/c7/stm/forksupport.c
--- a/c7/stm/forksupport.c
+++ b/c7/stm/forksupport.c
@@ -58,7 +58,7 @@
/* Make a new mmap at some other address, but of the same size as
the standard mmap at stm_object_pages
*/
- int big_copy_fd;
+ int big_copy_fd = -1;
char *big_copy = setup_mmap("stmgc's fork support", &big_copy_fd);
/* Copy all the data from the two ranges of objects (large, small)
diff --git a/c7/test/support.py b/c7/test/support.py
--- a/c7/test/support.py
+++ b/c7/test/support.py
@@ -478,7 +478,8 @@
],
undef_macros=['NDEBUG'],
include_dirs=[parent_dir],
- extra_compile_args=['-g', '-O0', '-Werror'], #, '-ferror-limit=1'],
+ extra_compile_args=['-g', '-O0', '-Werror', #, '-ferror-limit=1', for clang
+ '-Wfatal-errors'], # for gcc
extra_link_args=['-g', '-lrt'],
force_generic_engine=True)
More information about the pypy-commit
mailing list