cpp_macro_definition, as used by options such as -dM, for PCH and for outputting macro definitions in debug info, should preserve the spelling (digraph or not) of # and ## operators, whether there is whitespace around them and sequences of consecutive ## and %:%: operators. After my patch for bug 20078, the relevant information is available at this point; it just isn't used for the textual output.
-- Summary: cpp_macro_definition should preserve # and ## spelling and whitespace Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jsm28 at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39818