[Bug preprocessor/14342] New: cpp -C -dD loses comments on same line as #define directives
amb at gedanken dot demon dot co dot uk
gcc-bugzilla@gcc.gnu.org
Sun Feb 29 09:39:00 GMT 2004
This is a regression from version 2.x where using the -dD and -C options would
show the comments on the same line as the #define in the output. There is a -CC
option in this gcc that will show the comment on the line that is output by -dD
but it also includes the comment everywhere that the maro is expanded.
For example for the test file:
#define FOO 1 /* foo */
cpp -dD -C gives:
#define FOO 1
while in version 2.95 it gave:
#define FOO 1 /* foo */
This regression breaks the C cross referencing program cxref.
See bug #13726 for related, but different, bug that also breaks cxref.
--
Summary: cpp -C -dD loses comments on same line as #define
directives
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amb at gedanken dot demon dot co dot uk
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14342
More information about the Gcc-bugs
mailing list