This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/14342] New: cpp -C -dD loses comments on same line as #define directives
- From: "amb at gedanken dot demon dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Feb 2004 09:39:31 -0000
- Subject: [Bug preprocessor/14342] New: cpp -C -dD loses comments on same line as #define directives
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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