[Bug preprocessor/65037] New: cpp inserts spurious newlines
jsynacek at redhat dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 12 08:32:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list