This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 3/4] Finally remove tm.,h and options.h as dependencies on tree-core.h and tree.h


On 06/25/2015 07:23 AM, Andrew MacLeod wrote:
This patch turns the cl_optimization structure from an OPTIMIZATION_NODE
into a pointer inmstead of an actual instance. This is analgous to what
I did in a previously checked in  patch for target optimizations
(https://gcc.gnu.org/ml/gcc-patches/2015-06/msg01152.html), I just
missed this one  then.  This time it really does remove the dependency
of tree-core.h on optons.h and thus tm.h.

These nodes are not used very much, so I don't expect any performance or
memory issues.

Bootstraps on x86_64-unknown-linux-gnu with no new regressions. Also
builds stage 1 on all the targets in config-list.mk.

OK for trunk?

Andrew


3-tree-tm.patch


	* tree-core.h (struct tree_optimization_option): Make opts a pointer to
	struct cl_optimization.
	* tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
	* tree.c (make_node_stat): Allocate cl_optimization struct.
	(copy_node_stat): Allocate and copy cl_optimization struct.
OK.
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]