* varasm.c (handle_cache_entry): Fix logic.
From-SVN: r222641
This commit is contained in:
parent
66286a53d5
commit
1c3289cd61
2 changed files with 14 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-04-30 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
* varasm.c (handle_cache_entry): Fix logic.
|
||||
|
||||
2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||
|
||||
* config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
|
||||
|
|
21
gcc/varasm.c
21
gcc/varasm.c
|
@ -5793,21 +5793,20 @@ struct tm_clone_hasher : ggc_cache_hasher<tree_map *>
|
|||
static hashval_t hash (tree_map *m) { return tree_map_hash (m); }
|
||||
static bool equal (tree_map *a, tree_map *b) { return tree_map_eq (a, b); }
|
||||
|
||||
static void handle_cache_entry (tree_map *&e)
|
||||
static void
|
||||
handle_cache_entry (tree_map *&e)
|
||||
{
|
||||
if (e != HTAB_EMPTY_ENTRY || e != HTAB_DELETED_ENTRY)
|
||||
{
|
||||
extern void gt_ggc_mx (tree_map *&);
|
||||
if (ggc_marked_p (e->base.from))
|
||||
gt_ggc_mx (e);
|
||||
else
|
||||
e = static_cast<tree_map *> (HTAB_DELETED_ENTRY);
|
||||
}
|
||||
extern void gt_ggc_mx (tree_map *&);
|
||||
if (e == HTAB_EMPTY_ENTRY || e == HTAB_DELETED_ENTRY)
|
||||
return;
|
||||
else if (ggc_marked_p (e->base.from))
|
||||
gt_ggc_mx (e);
|
||||
else
|
||||
e = static_cast<tree_map *> (HTAB_DELETED_ENTRY);
|
||||
}
|
||||
};
|
||||
|
||||
static GTY((cache))
|
||||
hash_table<tm_clone_hasher> *tm_clone_hash;
|
||||
static GTY((cache)) hash_table<tm_clone_hasher> *tm_clone_hash;
|
||||
|
||||
void
|
||||
record_tm_clone_pair (tree o, tree n)
|
||||
|
|
Loading…
Add table
Reference in a new issue