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

[Bug preprocessor/41445] Debug information is wrong with and without --save-temps.



------- 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


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