[PATCH] Adjust testsuite and rope for "Deprecated implicit typename"
Phil Edwards
pedwards@disaster.jaj.com
Wed Dec 12 16:47:00 GMT 2001
On Thu, Dec 13, 2001 at 01:15:43AM +0100, Paolo Carlini wrote:
> > Looks good from here. (As an unrelated question, have you tried building
> > a cross-compiler for testing patches on other platforms? It's quite an
> > adventure, but can be very useful.)
>
> Very nice idea. I will try this ASAP.
> Specifically, which ones would be the most interesting ones in your opinion? Tips?
http://gcc.gnu.org/simtest-howto.html
I usually use powerpc-eabisim, just because I think that chip is cool. :-)
Any platform which has a lot of trouble is also a good one to monitor;
sparc-sun-solaris2* somewhat falls into this camp for me, since I have
some of those where I work, and so I have a vague interest in keeping
those functioning. But for that one I can normally just try it natively.
The *BSD platforms are also important one to keep functioning.
> > > diff -urN libstdc++-v3-orig/include/ext/ropeimpl.h
> >
> > Also as a side note, the -p option to diff or cvs diff is usually
> > appreciated. For libstdc++, most of the time the "function" shown turns
> > out to be something like "namespace std {" but every so often diff gets
> > the right name. :-)
>
> Another very good suggestion (much easier to put in practice ;-).
> No one among the CVS developers is working on improving the support for C++ (or
> other programming languages for that matter) ??
Well, CVS just uses the GNU diff code.
The GNU diff code only looks for a matching regular expression higher
up in the file than where the diff occurs. I looked at this briefly;
in the CVS source it's diff/context.c:find_function().
None of that code is language-aware (other than "it looks like C source"),
and it's not really possible to distinguish the cases based only on
regexp matching. It would have to use some kind of actual language parser
or codewalker.
I wonder how well -p works on Java.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Libstdc++
mailing list