#line directives in llvm-gcc


Apparently llvm-gcc ignores #line directives in source files when generating debug information. When I compile this:

int f(int a)
#line 1 "someplace"
   return a*a;

with `llvm -g -S lines.c`, `someplace' is not mentioned in lines.s. It also looks like functions #included from header files get attributed to the #including file (albeit at the right line number).

Is there an option to take #line into account that I am missing?

Thanks in advance,

Would you please file a bug in bugzilla http://llvm.org/bugs/ so we can track this issue? Would you also attach the test file, the llvm-ggc output and the equivalent output from gcc? Thank you.


-- Jim