Question about source file location when one uses #line 1 "example2.in" directive
Martin Liška
mliska@suse.cz
Wed Apr 19 08:15:00 GMT 2017
Gentle PING^1
> Hello.
>
> I've been working on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78792, where one provides
> #line directive. Problem is that in ipa-profile.c I see:
>
> $ cat ~/Programming/testcases/pr78792.f90
> #line 10 "example.in"
> PROGRAM example
> PRINT *, "example"
> END PROGRAM
>
> $ (gdb) p curr_location
> $1 = {file = 0x21e2c70 "/home/marxin/Programming/testcases/pr78792.f90", line = 12, column = 0, data = 0x0, sysp = false}
>
> line is fine, however file isn't. The very same source code works fine for *.i files, where file is changed properly.
> Can you please help me where to investigate?
>
> Thanks,
> Martin
>
More information about the Fortran
mailing list