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

Reply via email to