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/65037] New: cpp inserts spurious newlines


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65037

            Bug ID: 65037
           Summary: cpp inserts spurious newlines
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jsynacek at redhat dot com

The <db.h> here is a header file from libdb (Berkeley DB).

$ cat conftest.c
#include <db.h>
__db_version DB_VERSION_MAJOR


The new version:
$ cpp --version
cpp (GCC) 5.0.0 20150208 (Red Hat 5.0.0-0.9)

$ cpp conftest.c
< ...snip... >
# 2 "conftest.c" 2

# 2 "conftest.c"
__db_version 
# 2 "conftest.c" 3 4
            5


The older version:
$ cpp --version
cpp (GCC) 4.9.2 20141101 (Red Hat 4.9.2-1)

$ cpp conftest.c
< ...snip... >
# 2 "conftest.c" 2
__db_version 5


Running cpp with "-P" doesn't generate the spurious line breaks.


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