aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/finaltest.c
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-07 12:58:57 +0100
committerRichard Brooksby2012-09-07 12:58:57 +0100
commit78d5f049f0e60bd0c903bc331c253f681d082cea (patch)
tree2313698d481513796220f50377bdd911fff16bad /mps/code/finaltest.c
parente17fee98ea221678f40bae915dd32c91ccc71922 (diff)
downloademacs-78d5f049f0e60bd0c903bc331c253f681d082cea.tar.gz
emacs-78d5f049f0e60bd0c903bc331c253f681d082cea.zip
Eliminating type puns on scan states, location dependencies, and allocation points through the mps interface.
Now that we're recommending inlining with client code and optimising with -O2 or -O3, we can't afford any bug introduced by the strict aliasing rule. Copied from Perforce Change: 179322 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/finaltest.c')
-rw-r--r--mps/code/finaltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mps/code/finaltest.c b/mps/code/finaltest.c
index 79496801acb..9351688a9ce 100644
--- a/mps/code/finaltest.c
+++ b/mps/code/finaltest.c
@@ -142,10 +142,10 @@ static void *test(void *arg, size_t s)
142 die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create"); 142 die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create");
143 die(mps_pool_create(&amc, arena, mps_class_amc(), fmt, chain), 143 die(mps_pool_create(&amc, arena, mps_class_amc(), fmt, chain),
144 "pool_create amc\n"); 144 "pool_create amc\n");
145 die(mps_root_create_table(&mps_root, arena, MPS_RANK_EXACT, (mps_rm_t)0, 145 die(mps_root_create_table(&mps_root, arena, mps_rank_exact(), (mps_rm_t)0,
146 root, (size_t)rootCOUNT), 146 root, (size_t)rootCOUNT),
147 "root_create\n"); 147 "root_create\n");
148 die(mps_ap_create(&ap, amc, MPS_RANK_EXACT), "ap_create\n"); 148 die(mps_ap_create(&ap, amc, mps_rank_exact()), "ap_create\n");
149 149
150 mps_message_type_enable(arena, mps_message_type_finalization()); 150 mps_message_type_enable(arena, mps_message_type_finalization());
151 151