Mercurial > hg > CbC > CbC_gcc
diff libitm/beginend.cc @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/libitm/beginend.cc Fri Oct 27 22:46:09 2017 +0900 +++ b/libitm/beginend.cc Thu Oct 25 07:37:49 2018 +0900 @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2017 Free Software Foundation, Inc. +/* Copyright (C) 2008-2018 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU Transactional Memory Library (libitm). @@ -431,7 +431,12 @@ // Save everything that we might have to restore on restarts or aborts. jb = tx->jb; undolog_size = tx->undolog.size(); + + /* FIXME! Assignment of an aatree like alloc_actions is unsafe; if either + *this or *tx is destroyed, the other ends up pointing to a freed node. */ +#pragma GCC diagnostic warning "-Wdeprecated-copy" alloc_actions = tx->alloc_actions; + user_actions_size = tx->user_actions.size(); id = tx->id; prop = tx->prop;