faster tree type checking

Richard Henderson rth@cygnus.com
Thu Aug 19 01:08:00 GMT 1999


On Thu, Aug 19, 1999 at 12:02:10AM -0700, Zack Weinberg wrote:
> +    if (TREE_CODE(__t) != (code))					\
> +      tree_check_failed (__t, code, trim_filename(__FILE__),		\
> +			 __LINE__, __PRETTY_FUNCTION__);		\

You can trim the code expansion a bit by moving the call
to trim_filename inside the error reporting function.

Otherwise it's ok.


r~


More information about the Gcc-patches mailing list