This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/41445] Debug information is wrong with and without --save-temps.
- 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: 6 Oct 2009 13:17:01 -0000
- Subject: [Bug preprocessor/41445] Debug information is wrong with and without --save-temps.
- References: <bug-41445-17506@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2009-10-06 13:17 -------
Created an attachment (id=18720)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18720&action=view)
gcc45-pr41445.patch
Multi-line comments also screw up locus
of tokens on the same line as the end of the multi-line comment.
The following patch fixes this. The advantage is that it doesn't slow down the
common operation (preprocessing and compilation together), but maybe slows down
-E a tiny bit. If only the function-like macros were a problem, we could just
do this in the avoid_paste case, but for multi-line comments no CPP_PADDING
token is added.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41445