On Mon, 2012-10-01 at 08:38 +0900, Kaz Kojima wrote:
> Oleg Endo <oleg.e...@t-online.de> wrote:
> > This implements the changes as proposed PR, albeit with some small
> > differences:
> 
> > --- gcc/config/sh/sh.c      (revision 191865)
> > +++ gcc/config/sh/sh.c      (working copy)
> [snip]
> > +  std::vector<std::string> tokens;
> > +  for (std::stringstream ss (str); ss.good (); )
> > +  {
> > +    tokens.push_back (std::string ());
> > +    std::getline (ss, tokens.back (), ',');
> > +  }
> 
> Can we use C++ in .c files already?  I couldn't find other examples
> in the current gcc.
> 

The existing .c files are compiled as C++ already.  There was a
discussion not long go whether the .c files should be renamed to .cc or
not.  If I remember correctly, the conclusion was that existing .c files
remain .c, while files newly added should be .cc.  gcc/double-int.c
would probably one of the recent examples.

Cheers,
Oleg


Reply via email to