This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/41748] Continued lines are not merged into one long line
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2009 08:13:04 -0000
- Subject: [Bug preprocessor/41748] Continued lines are not merged into one long line
- References: <bug-41748-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2009-10-19 08:13 -------
The lines are joined into a logical line, that's what the C standard requires.
But where do you see requirement that everything on one logical line has to
appear on the line in preprocessed output? The reason it is emitted on the
next line is to give the second string literal token proper location. The
tokens are separate and a compiler compiles both "foo" "bar" and
"foo"
"bar"
the same (as it doesn't record the line numbers for the string literals at
all).
See PR41445 for why this change has been made.
If you care about this because you use the preprocessed output for something
else, consider using -P option. That says you don't care about token
locations.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41748