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] More tree-flow.h prototypes.


This patch (rev. 203118) seems to break bootstrapping with Graphite:

g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace -DCLOOG_INT_GMP -o ipa-devirt.o -MT ipa-devirt.o -MMD -MP -MF ./.deps/ipa-devirt.TPo ../../gcc/ipa-devirt.c ../../gcc/graphite-sese-to-poly.c: In function 'void rewrite_cross_bb_scalar_dependence(scop_p, tree, tree, gimple)': ../../gcc/graphite-sese-to-poly.c:2348:31: error: 'replace_exp' was not declared in this scope
       replace_exp (use_p, name);
                               ^
../../gcc/graphite-scop-detection.c: In function 'void canonicalize_loop_closed_ssa(loop_p)': ../../gcc/graphite-scop-detection.c:1335:26: error: 'replace_exp' was not declared in this scope
   replace_exp (use_p, res);
                          ^
make[3]: *** [graphite-sese-to-poly.o] Error 1


Tobias

	* tree-flow.h: Remove some prototypes.
	* gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
	* tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
	* tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
	propagate_tree_value*): Move from here to...
	* tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
	propagate_tree_value*): Relocate here.
	* tree-ssa-propagate:h: Relocate prototypes from tree-flow.h.
	* gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
	* gimple-fold.c: Remove gimple-fold.h from include list.
	* tree-vrp.c: Remove gimple-fold.h from include list.
	* tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
	* tree-ssa-ccp.c: Remove gimple-fold.h from include list.
	* tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
	* tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
	* sese.c: Add tree-ssa-propagate.h to include list.



Andrew MacLeod wrote:
On 10/02/2013 07:58 AM, Andrew MacLeod wrote:
On 10/02/2013 04:37 AM, Richard Biener wrote:
On Tue, Oct 1, 2013 at 11:01 PM, Andrew MacLeod <amacleod@redhat.com>
wrote:
This patch moves prototypes into gimple-fold.h (which already existed).
There were a few in tree-flow.h and a bunch in gimple.h. The
routines are
used frequently enough that it makes sense to include gimple-fold.h
from
gimple.h instead of from within each .c file that needs it.
(presumably why
the prototypes were in gimple.h to begin with). I took gimple-fold.h
out of
whatever .c files it was included in.

tree-ssa-copy.h was also created for the prototypes in that file and
included from tree-ssa.h.
These should probably be moved elsewhere (tree-ssa-copy.c is supposed
to be the copy propagation pass file).  But that can be done as
followup.


hmm, easy enough to move them *all* to tree-ssa-propagate.[ch] right
now and check it in...  That seems like the right place for all of
them and then we don't even need to create tree-ssa-copy.h...?

Like so..  and directly include tree-ssa-propagate.h in the 3 .c files
that need it now.

bootstrapped on x86_64-unknown-linux-gnu.. regressions running. Prefer
this?

Andrew


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