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]
Other format: [Raw text]

Re: [patch] Code cleanup in pt.c concerning template_class_depth


Volker Reichelt wrote:
The function template_class_depth in pt.c is only a wrapper for
template_class_depth_real which has one additional argument.
In fact t_c_d is the only caller of t_c_d_r and the additional
argument "count_specializations" is always 0.

The following patch removes the superfluous argument, moves
all functionality to t_c_d, and gets rid of t_c_d_r.

Bootstrapped and regtested on i686-pc-linux-gnu.
Ok for mainline?
ok, thanks

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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