diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-05-22 07:22:50 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-06-05 09:16:41 +0200 |
commit | 6ea6c4978111d146db8d33c80d9da93d7bd2bc8d (patch) | |
tree | a548cf85aba746bcf124a908512a8ff704e4fe00 /gcc/expr.c | |
parent | 80d6f89e78fc3b772701988cc73aa8e8006283be (diff) | |
download | gcc-6ea6c4978111d146db8d33c80d9da93d7bd2bc8d.zip gcc-6ea6c4978111d146db8d33c80d9da93d7bd2bc8d.tar.gz gcc-6ea6c4978111d146db8d33c80d9da93d7bd2bc8d.tar.bz2 |
Add new/delete to struct occurence
This adds an example how to use new/delete operators to pool
allocated objects.
2020-06-04 Jonathan Wakely <jwakely@redhat.com>
* alloc-pool.h (object_allocator::remove_raw): New.
* tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
(occurrence::occurrence): Add.
(occurrence::~occurrence): Likewise.
(occurrence::new): Likewise.
(occurrence::delete): Likewise.
(occ_new): Remove.
(insert_bb): Use new occurence (...) instead of occ_new.
(register_division_in): Likewise.
(free_bb): Use delete occ instead of manually removing
from the pool.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions