diff options
| author | Richard Brooksby | 2012-09-07 12:58:57 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-07 12:58:57 +0100 |
| commit | 78d5f049f0e60bd0c903bc331c253f681d082cea (patch) | |
| tree | 2313698d481513796220f50377bdd911fff16bad /mps/code/finalcv.c | |
| parent | e17fee98ea221678f40bae915dd32c91ccc71922 (diff) | |
| download | emacs-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/finalcv.c')
| -rw-r--r-- | mps/code/finalcv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mps/code/finalcv.c b/mps/code/finalcv.c index 355c841e1ae..79a38dbbfb3 100644 --- a/mps/code/finalcv.c +++ b/mps/code/finalcv.c | |||
| @@ -117,13 +117,13 @@ static void *test(void *arg, size_t s) | |||
| 117 | die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create"); | 117 | die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create"); |
| 118 | die(mps_pool_create(&amc, arena, mps_class_amc(), fmt, chain), | 118 | die(mps_pool_create(&amc, arena, mps_class_amc(), fmt, chain), |
| 119 | "pool_create amc\n"); | 119 | "pool_create amc\n"); |
| 120 | die(mps_root_create_table(&mps_root[0], arena, MPS_RANK_EXACT, (mps_rm_t)0, | 120 | die(mps_root_create_table(&mps_root[0], arena, mps_rank_exact(), (mps_rm_t)0, |
| 121 | root, (size_t)rootCOUNT), | 121 | root, (size_t)rootCOUNT), |
| 122 | "root_create\n"); | 122 | "root_create\n"); |
| 123 | die(mps_root_create_table(&mps_root[1], arena, MPS_RANK_EXACT, (mps_rm_t)0, | 123 | die(mps_root_create_table(&mps_root[1], arena, mps_rank_exact(), (mps_rm_t)0, |
| 124 | &p, (size_t)1), | 124 | &p, (size_t)1), |
| 125 | "root_create\n"); | 125 | "root_create\n"); |
| 126 | die(mps_ap_create(&ap, amc, MPS_RANK_EXACT), "ap_create\n"); | 126 | die(mps_ap_create(&ap, amc, mps_rank_exact()), "ap_create\n"); |
| 127 | 127 | ||
| 128 | /* Make registered-for-finalization objects. */ | 128 | /* Make registered-for-finalization objects. */ |
| 129 | /* <design/poolmrg/#test.promise.ut.alloc> */ | 129 | /* <design/poolmrg/#test.promise.ut.alloc> */ |