This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: faster tree type checking


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]