summaryrefslogtreecommitdiffstats
path: root/gcc/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 740d4382712..b852f1d9434 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3589,21 +3589,26 @@ struct GTY(()) tree_optimization_option {
/* Target optabs for this set of optimization options. This is of
type `struct target_optabs *'. */
- unsigned char *GTY ((atomic)) target_optabs;
+ unsigned char *GTY ((atomic)) optabs;
+
+ /* The value of this_target_optabs against which the optabs above were
+ generated. */
+ struct target_optabs *GTY ((skip)) base_optabs;
};
#define TREE_OPTIMIZATION(NODE) \
(&OPTIMIZATION_NODE_CHECK (NODE)->optimization.opts)
#define TREE_OPTIMIZATION_OPTABS(NODE) \
- (OPTIMIZATION_NODE_CHECK (NODE)->optimization.target_optabs)
+ (OPTIMIZATION_NODE_CHECK (NODE)->optimization.optabs)
+
+#define TREE_OPTIMIZATION_BASE_OPTABS(NODE) \
+ (OPTIMIZATION_NODE_CHECK (NODE)->optimization.base_optabs)
/* Return a tree node that encapsulates the current optimization options. */
extern tree build_optimization_node (void);
-/* Save a new set of target_optabs in a TREE_OPTIMIZATION node if the
- current set of optabs has changed. */
-extern void save_optabs_if_changed (tree);
+extern void init_tree_optimization_optabs (tree);
/* Target options used by a function. */
OpenPOWER on IntegriCloud