On Thu, Sep 05, 2019 at 07:08:48AM -0700, Steve Kargl wrote: > 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 <nat...@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 >
There are 9 open PRs about cpp and Fortran. Of those nine, these seem to be important for moving to modern cpp. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67623 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56659 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53934 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42954 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28662 -- Steve