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

preprocessor/5289: "cpp -traditional" inserts spurious line breaks



>Number:         5289
>Category:       preprocessor
>Synopsis:       "cpp -traditional" inserts spurious line breaks
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 06 05:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Erik Schnetter
>Release:        3.0.3
>Organization:
Theoretische Astrophysik Tuebingen
>Environment:
System: Linux lilypond 2.4.10-4GB #1 Tue Sep 25 12:33:54 GMT 2001 i686 unknown
Architecture: i686

host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.0.3/configure --prefix=/home/eschnett/gcc
>Description:

I use cpp to preprocess Fortran 77 code.  I call cpp as "cpp
-traditional", and I find that cpp inserts spurious line breaks under
certain circumstances.  cpp from gcc 2.95.3 works fine under the same
circumstances.

>How-To-Repeat:

The following three lines of source code (the first line ends with the
backslash) (note the second, empty line)
#define a b\

(a)
get wrongly preprocessed into the three lines

(b
)
I think that the result should consist of two lines only, namely

(b)
without the line break before the closing paren.

The above constellation appears in automatically generated code.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


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