From f6e3667f976a0592eb156d948a9dfe240250778d Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Wed, 17 Jun 2015 17:55:26 +0000 Subject: tree-core.h (tree_target_option): Make opts field a pointer to a cl_target_option instead of an instance of the... 2017-06-17 Andrew MacLeod * tree-core.h (tree_target_option): Make opts field a pointer to a cl_target_option instead of an instance of the struct. * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of the structure. * tree.c (make_node_stat ): Allocate a cl_target_option struct for TARGET_OPTION_NODE. (copy_node_stat): Allocate and copy struct cl_target_option. From-SVN: r224567 --- gcc/tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree.h') diff --git a/gcc/tree.h b/gcc/tree.h index dedcb37..34b9368 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2839,7 +2839,7 @@ extern vec **decl_debug_args_insert (tree); extern tree build_optimization_node (struct gcc_options *opts); #define TREE_TARGET_OPTION(NODE) \ - (&TARGET_OPTION_NODE_CHECK (NODE)->target_option.opts) + (TARGET_OPTION_NODE_CHECK (NODE)->target_option.opts) #define TREE_TARGET_GLOBALS(NODE) \ (TARGET_OPTION_NODE_CHECK (NODE)->target_option.globals) -- cgit v1.1