On Fri, 22 Jul 2011, Ilya Enkovich wrote:

> Hello,
> 
> I need to use enum tree_code for default hook in hooks.c. I had to add
> "tree.h" include into "hook.c" for that. But it caused some errors in
> gcc build:

hooks.c should only be for hooks with very generic prototypes likely to be 
of use for multiple hooks and for both target hooks and language hooks.  
If you need tree codes, it's likely your default hook is only useful in 
one case and would better go in targhooks.c or langhooks.c (depending on 
what sort of hook it is).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to