This is the mail archive of the gcc-bugs@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]

[Bug preprocessor/23751] New: cpp -P emits two newlines


The proeprocessor now emits two senseless newlines when used with the '-P' option.

Reproduce:
$ cpp -P
asdfasdf
^D


asdfasdf
$

Versions prior to 4.0.1 didn't emit these two newlines. Probably 4.0.0. also
didn't, but I can't test that here.

The following verisions don't have this bug:
  gcc-Version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
  gcc version 3.3.5 (Debian 1:3.3.5-13)
These versions do have the bug:
  gcc version 4.0.1 (Debian 4.0.1-2)
  gcc version 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)

-- 
           Summary: cpp -P emits two newlines
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: johann dot glaser at gmx dot at
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23751


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