This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: partially hookize *_TYPE_SIZE
On Tue, 30 Nov 2010, Joern Rennecke wrote:
> I see your point. The name of the parameter is not evident at the call site.
> I suppose the best way to handle the enum tree_index dependency
> (not all users of target.h use tree.h) is to declare these hooks to take an
> int argument.
You could alternatively create separate enums for each hook for greater
type safety.
--
Joseph S. Myers
joseph@codesourcery.com