preprocessor/6021: \^M handling wrong when not followed by ^J
mrs@wrs.com
mrs@wrs.com
Wed Mar 20 19:56:00 GMT 2002
>Number: 6021
>Category: preprocessor
>Synopsis: \^M handling wrong when not followed by ^J
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 20 19:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Mike Stump
>Release: unknown-1.0
>Organization:
>Environment:
top of tree, gcc version 3.2 20020318 (experimental)
>Description:
\^M should not advance the line count. Only \^M^J should.
I like the handling of \^M, leave it alone.
The output for the testcase should be:
char c;
char c;
char c;
int bye;
The reason for this might be somewhat obscure, but if you
fire up up an ASR 33, and try it out, you'll see why.
>How-To-Repeat:
$ ~/net/gcc-sol/gcc/xgcc -B$HOME//net/gcc-sol/gcc/ -E t.c | cat -v
char c;
char c;
char c;
int bye;
and the source:
$ cat -v t.c
ch\^Mar c;
ch\^Mar c;
ch\^Mar c;
int bye;
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list