This is the mail archive of the gcc@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: Stage 2 project: upgrade decNumber


On Wed, 2007-08-29 at 17:01 -0700, Joe Buck wrote:
> On Wed, Aug 29, 2007 at 07:51:43PM -0400, Daniel Jacobowitz wrote:
> > On Wed, Aug 29, 2007 at 01:33:37PM -0700, Janis Johnson wrote:
> > > This version of decNumber is quite different from what's currently in
> > > GCC.  The pristine version of the sources uses C++-style comments and
> > > CRLF, so I plan to use the following filter before checking in the
> > > updated files:
> > > 
> > >   col \
> > >     | sed -e 's,\([^:]\)//\(.*\),\1/*\2 */,' \
> > >           -e 's,^//\(.*\),/*\1 */,' \
> > >     | indent
> > 
> > For what it's worth, I wouldn't bother.  We can handle minimal changes
> > from upstream source.
> 
> But it looks like libdecnumber is processed in stage 1.  What if the
> stage 1 compiler doesn't handle C++ comments?

Right, decNumber is used in the C compiler and it's the C++ comments
that convinced me of the need to modify the sources.  While I'm at it I
might as well get rid of CRLF (col does that nicely), and after that
it's no more work to run it through indent so it will look like our
other code.

Janis


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