This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Deprecate -traditional-cpp?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: Nathan Sidwell <nathan at acm dot org>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Thu, 5 Sep 2019 07:08:48 -0700
- Subject: Re: Deprecate -traditional-cpp?
- References: <27f8f3cb-693c-0306-138b-dd5bd5ffd995@acm.org> <CAO9iq9EqW4Xq3wveXYrcNN3NKCR1CJyu57o6Y0GjOBAy=si-DQ@mail.gmail.com> <20190905140325.GA8561@troutmask.apl.washington.edu>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Thu, Sep 05, 2019 at 07:03:25AM -0700, Steve Kargl wrote:
> On Thu, Sep 05, 2019 at 02:16:08PM +0300, Janne Blomqvist wrote:
> > On Thu, Sep 5, 2019 at 2:08 PM Nathan Sidwell <nathan@acm.org> wrote:
> > >
> > > Is it time to deprecate traditional preprocessing? It's been 30 years
> > > since C89. Are (non-compiler) tools that use it still things?
> > >
> > > Handling it gets its hooks into a bunch of odd places in libcpp.
> > >
> > > To be specific: deprecate -traditional-cpp for GCC10, remove in GCC11.
> >
> > The Fortran frontend uses traditional mode, for reasons I can't recall
> > at the moment.
> >
>
> Modern C allows single line comments to start with //
>
> program hello
> print *, "Hello " // "world!"
> end program
With trunk,
% ~/work/bin/cpp hello.F90
# 1 "hello.F90"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "hello.F90"
program hello
print *, "Hello "
end program
--
Steve