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 c/25175] New: Meaningless pre-processor lineno comments inserted


Create this file, x.c:
     main(){}

Then pre-process with, "cc -E -g x.c" (the -g is significant).

The output will contain a line such as:

    # 1 "/home/me/testdir//"

This seems to be at odds with all other such annotations.
Why is the current directory output?  And why the double /?


-- 
           Summary: Meaningless pre-processor lineno comments inserted
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jw203198 at hotmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25175


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