aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-11-05 13:45:04 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-11-05 12:45:04 +0000
commit9aca5960a4b723e4b544544478871292990fed31 (patch)
tree6b9ca17c97d0a6970ff43bdb4c31330b2c02fc9f
parent5aef51c2199f69885a43592db3a1ec15f43f4064 (diff)
downloadgcc-9aca5960a4b723e4b544544478871292990fed31.zip
gcc-9aca5960a4b723e4b544544478871292990fed31.tar.gz
gcc-9aca5960a4b723e4b544544478871292990fed31.tar.bz2
Use more ggc_delete.
2019-11-05 Martin Liska <mliska@suse.cz> * symbol-summary.h: Use ggc_delete. From-SVN: r277827
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/symbol-summary.h10
2 files changed, 6 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cf6aa5c..c281cc8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-11-05 Martin Liska <mliska@suse.cz>
+
+ * symbol-summary.h: Use ggc_delete.
+
2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
* config/aarch64/aarch64.c (thunderx2t99_vector_cost):
diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h
index 8aedcfe..a5e20e5 100644
--- a/gcc/symbol-summary.h
+++ b/gcc/symbol-summary.h
@@ -69,10 +69,7 @@ protected:
void release (T *item)
{
if (is_ggc ())
- {
- item->~T ();
- ggc_free (item);
- }
+ ggc_delete (item);
else
m_allocator.remove (item);
}
@@ -562,10 +559,7 @@ protected:
void release (T *item)
{
if (is_ggc ())
- {
- item->~T ();
- ggc_free (item);
- }
+ ggc_delete (item);
else
m_allocator.remove (item);
}