This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/65037] New: cpp inserts spurious newlines
- From: "jsynacek at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Feb 2015 08:32:37 +0000
- Subject: [Bug preprocessor/65037] New: cpp inserts spurious newlines
- Auto-submitted: auto-generated
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.