Mercurial > hg > CbC > CbC_gcc
comparison libitm/beginend.cc @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Copyright (C) 2008-2017 Free Software Foundation, Inc. | 1 /* Copyright (C) 2008-2018 Free Software Foundation, Inc. |
2 Contributed by Richard Henderson <rth@redhat.com>. | 2 Contributed by Richard Henderson <rth@redhat.com>. |
3 | 3 |
4 This file is part of the GNU Transactional Memory Library (libitm). | 4 This file is part of the GNU Transactional Memory Library (libitm). |
5 | 5 |
6 Libitm is free software; you can redistribute it and/or modify it | 6 Libitm is free software; you can redistribute it and/or modify it |
429 GTM::gtm_transaction_cp::save(gtm_thread* tx) | 429 GTM::gtm_transaction_cp::save(gtm_thread* tx) |
430 { | 430 { |
431 // Save everything that we might have to restore on restarts or aborts. | 431 // Save everything that we might have to restore on restarts or aborts. |
432 jb = tx->jb; | 432 jb = tx->jb; |
433 undolog_size = tx->undolog.size(); | 433 undolog_size = tx->undolog.size(); |
434 | |
435 /* FIXME! Assignment of an aatree like alloc_actions is unsafe; if either | |
436 *this or *tx is destroyed, the other ends up pointing to a freed node. */ | |
437 #pragma GCC diagnostic warning "-Wdeprecated-copy" | |
434 alloc_actions = tx->alloc_actions; | 438 alloc_actions = tx->alloc_actions; |
439 | |
435 user_actions_size = tx->user_actions.size(); | 440 user_actions_size = tx->user_actions.size(); |
436 id = tx->id; | 441 id = tx->id; |
437 prop = tx->prop; | 442 prop = tx->prop; |
438 cxa_catch_count = tx->cxa_catch_count; | 443 cxa_catch_count = tx->cxa_catch_count; |
439 cxa_uncaught_count = tx->cxa_uncaught_count; | 444 cxa_uncaught_count = tx->cxa_uncaught_count; |