Bug 12375 - [3.3/3.4 regression] cpp inserting a spurious newline
Summary: [3.3/3.4 regression] cpp inserting a spurious newline
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: preprocessor (show other bugs)
Version: 3.3.2
: P2 critical
Target Milestone: 3.3.2
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-23 08:56 UTC by Debian GCC Maintainers
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2003-09-23 08:56:26 UTC
[forwarded from http://bugs.debian.org/210482]

cpp is inserting a spurious newline after occurrance of
a macro with arguments withourt parentheses (which it is supposed to
leave alone):

falk@juist:/tmp% cat first.S
#define S(x) foobar
foo ! S
bar
falk@juist:/tmp% cpp-3.2 < first.S
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"

foo ! S
bar
falk@juist:/tmp% cpp-3.3 < first.S
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"

foo !
 S
# 3 "<stdin>"
bar

Bug still there in cpp 3.4 20030911.
Comment 1 Daniel Jacobowitz 2003-09-23 12:59:09 UTC
Subject: Re:  New: [3.3/3.4 regression] cpp inserting a spurious newline

On Tue, Sep 23, 2003 at 08:56:29AM -0000, debian-gcc at lists dot debian dot org wrote:
> Bug still there in cpp 3.4 20030911.

Try a newer snapshot, Alexandre fixed this.
Comment 2 Andrew Pinski 2003-09-23 21:25:05 UTC
Already fixed in 3.3 branch and the mainline, try again.
Comment 3 Andrew Pinski 2003-09-24 04:02:11 UTC
Closing as fixed.