public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/47328] New: preprocessor handles backslash at the end of a line incorrectly
@ 2011-01-17 14:45 gccbugzilla@trash-mail.com
2011-01-17 14:48 ` [Bug preprocessor/47328] " rguenth at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: gccbugzilla@trash-mail.com @ 2011-01-17 14:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47328
Summary: preprocessor handles backslash at the end of a line
incorrectly
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gccbugzilla@trash-mail.com
I use the gcc preprocessor to process structures like
@ define vunpack_uchar4(OUT,IN) { \
uint _in = (uint)(IN); \
OUT.x = (_in >> 0) & 0xFF; \
OUT.y = (_in >> 8) & 0xFF; \
OUT.z = (_in >> 16) & 0xFF; \
OUT.w = (_in >> 24) & 0xFF; \
}
(the @ is not a typo but intended. this should not be handled like macro
definition)
The backslash at the end of the line was handled correctly up to gcc 4.5.0. Now
the backslash is removed, but the lines are _not_ concatenated.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug preprocessor/47328] preprocessor handles backslash at the end of a line incorrectly
2011-01-17 14:45 [Bug preprocessor/47328] New: preprocessor handles backslash at the end of a line incorrectly gccbugzilla@trash-mail.com
@ 2011-01-17 14:48 ` rguenth at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-17 14:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47328
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-17 14:18:56 UTC ---
.
*** This bug has been marked as a duplicate of bug 45696 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-17 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-17 14:45 [Bug preprocessor/47328] New: preprocessor handles backslash at the end of a line incorrectly gccbugzilla@trash-mail.com
2011-01-17 14:48 ` [Bug preprocessor/47328] " rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).