Remove expand_body langhook

Kaveh R. GHAZI ghazi@caip.rutgers.edu
Tue Sep 11 21:54:00 GMT 2007


On Sun, 9 Sep 2007, Mark Mitchell wrote:

> Jan Hubicka wrote:
>
> > 	* decl.c (java_expand_body): Kill.
> > 	(LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
>
> OK.

Jan - I don't believe your patch was complete.  I'm getting a -Werror
bootstrap failure in the treelang directory related to this patch.

	gcc/treelang/treetree.c:1191: error: 'treelang_expand_function' defined but not used
	make[3]: *** [treelang/treetree.o] Error 1

This occurs because the langhook was removed but the underlying function
called by the langhook was not.

treelang/treetree.c:static void treelang_expand_function (tree fndecl);
treelang/treetree.c:#define LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION
treelang_expand_function treelang/treetree.c:treelang_expand_function(tree fndecl)

Also several instances of the LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION macro
still remain.

./c-objc-common.h:#undef LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION
./c-objc-common.h:#define LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION c_expand_body
fortran/f95-lang.c:#undef LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION
treelang/treetree.c:#undef LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION
treelang/treetree.c:#define LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION treelang_expand_function

Would you please clean these up?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu



More information about the Gcc-patches mailing list