[flang-commits] [flang] [flang][debuginfo] Use <stdin> for file name when reading from stdin (PR #176263)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Fri Jan 16 07:01:51 PST 2026


tarunprabhu wrote:

> Is this also what current gfortran does? If so, ship it.

Yes. This is what we see with gfortran in gdb.

```
[/tmp]$ cat hello.f90 | gfortran -g -o a.out -x f95 -
[/tmp]$ gdb ./a.out                                               
(gdb) b main
Breakpoint 1 at 0x1231: file /tmp/<stdin>, line 3.
```

And here is what flang will produce with this change.

```
[/tmp]$ cat hello.f90 | flang -g -o a.out -x f95 -
[/tmp]$ gdb ./a.out
(gdb) b main
Breakpoint 1 at 0x26b4: file <stdin>, line 3.
```

https://github.com/llvm/llvm-project/pull/176263


More information about the flang-commits mailing list