clang and #line directives

Hash: SHA1

At the moment #line preprocessor directives don't seem to be implemented:

// file foo.c
int main(int argc, char** argv){
#line 70
    printf("Line %d\n", __LINE__);

$ ccc foo.c && ./a.out
clang -emit-llvm-bc -x c -o foo.o foo.c
llvm-ld -native -disable-internalize -o a.out foo.o
Line 3

Sadly parrot needs that print out 'Line 70' to work (the build system
has some weird hooks where macro names are associated with line numbers
in generated code).

Are there any plans to add that soonish?

(Please keep me cc'ed, I'm not on the list)

Hi Moritz,

I went ahead and opened a placeholder bug for this issue,

I started looking into fixing this issue last week but it is tied closer to
the underlying architecture than I thought. I am waiting for Chris, who
wrote the preprocessor, to get back before moving forward.

It is definitely a high priority.

- Daniel