From 78d5f049f0e60bd0c903bc331c253f681d082cea Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Fri, 7 Sep 2012 12:58:57 +0100 Subject: 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 --- mps/code/finaltest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mps/code/finaltest.c') 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) die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create"); die(mps_pool_create(&amc, arena, mps_class_amc(), fmt, chain), "pool_create amc\n"); - die(mps_root_create_table(&mps_root, arena, MPS_RANK_EXACT, (mps_rm_t)0, + die(mps_root_create_table(&mps_root, arena, mps_rank_exact(), (mps_rm_t)0, root, (size_t)rootCOUNT), "root_create\n"); - die(mps_ap_create(&ap, amc, MPS_RANK_EXACT), "ap_create\n"); + die(mps_ap_create(&ap, amc, mps_rank_exact()), "ap_create\n"); mps_message_type_enable(arena, mps_message_type_finalization()); -- cgit v1.2.1