Re: tree_code enum usage in hooks.c

2011-07-22 Thread Joseph S. Myers
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 fo

Re: tree_code enum usage in hooks.c

2011-07-22 Thread Ilya Enkovich
2011/7/22 Richard Guenther : > > Elsewhere we use an unsigned int instead of enum tree_code. > > Richard. > Thanks for the hint! Ilya

Re: tree_code enum usage in hooks.c

2011-07-22 Thread Richard Guenther
On Fri, Jul 22, 2011 at 3:02 PM, 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: > > gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings >

tree_code enum usage in hooks.c

2011-07-22 Thread Ilya Enkovich
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: gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format