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