aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2019-11-07 18:06:43 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-07 17:06:43 +0000
commitc6145f2ac6f946ae2613ffbd85ba072cf05d4a3f (patch)
tree9c4e29310f176f5355cb165b1abc2ecfac45974f /gcc/tree.c
parent4629ea55608ee2f1e04186dce2c7f55af0537ccb (diff)
downloadgcc-c6145f2ac6f946ae2613ffbd85ba072cf05d4a3f.zip
gcc-c6145f2ac6f946ae2613ffbd85ba072cf05d4a3f.tar.gz
gcc-c6145f2ac6f946ae2613ffbd85ba072cf05d4a3f.tar.bz2
optc-save-gen.awk: Generate cl_target_option_free and cl_optimization_option_free.
* optc-save-gen.awk: Generate cl_target_option_free and cl_optimization_option_free. * opth-en.awk: Declare cl_target_option_free and cl_optimization_option_free. * tree.c (free_node): Use it. From-SVN: r277926
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index d08141b..d2c9fe3 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1170,6 +1170,10 @@ free_node (tree node)
vec_free (BLOCK_NONLOCALIZED_VARS (node));
else if (code == TREE_BINFO)
vec_free (BINFO_BASE_ACCESSES (node));
+ else if (code == OPTIMIZATION_NODE)
+ cl_optimization_option_free (TREE_OPTIMIZATION (node));
+ else if (code == TARGET_OPTION_NODE)
+ cl_target_option_free (TREE_TARGET_OPTION (node));
ggc_free (node);
}