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/14342] New: cpp -C -dD loses comments on same line as #define directives


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


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