From: Alexandre Oliva Date: Thu, 29 Dec 2022 17:32:57 +0000 (-0300) Subject: tm: complete tm_restart insertion X-Git-Tag: basepoints/gcc-14~2282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06be65894f7f18058496aa0e55bb7ec5613cb2a3;p=thirdparty%2Fgcc.git tm: complete tm_restart insertion Insertion of a tm_restart_node in tm_restart failed to record the newly-allocated node in the hash table. for gcc/ChangeLog * trans-mem.cc (split_bb_make_tm_edge): Record new node in tm_restart. --- diff --git a/gcc/trans-mem.cc b/gcc/trans-mem.cc index 131dce05476a..cbd1b891266f 100644 --- a/gcc/trans-mem.cc +++ b/gcc/trans-mem.cc @@ -3215,7 +3215,7 @@ split_bb_make_tm_edge (gimple *stmt, basic_block dest_bb, struct tm_restart_node *n = *slot; if (n == NULL) { - n = ggc_alloc (); + *slot = n = ggc_alloc (); *n = dummy; } else