https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90034
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> --- (gdb) call fileno(c->fp) $3 = 4 (gdb) info inferior Num Description Executable * 1 process 35251 /home/david/coding-3/gcc-git-bugfixing/build/gcc/cc1 (gdb) shell ls -al /proc/35251/fd total 0 dr-x------. 2 david david 0 Apr 10 12:02 . dr-xr-xr-x. 9 david david 0 Apr 10 12:02 .. lrwx------. 1 david david 64 Apr 10 12:02 0 -> /dev/pts/8 lrwx------. 1 david david 64 Apr 10 12:02 1 -> /dev/pts/8 lrwx------. 1 david david 64 Apr 10 12:02 2 -> /dev/pts/8 l-wx------. 1 david david 64 Apr 10 12:02 3 -> /tmp/ccE3XfON.s lr-x------. 1 david david 64 Apr 10 12:02 4 -> /dev/pts/8 which shows that I can type at the terminal during the hang, and then Ctrl-D to inject what the content of "/dev/stdout" should be: $ ./xgcc -B. -c ../../src/pr90034.c Hello world /dev/stdout:1:2: error: invalid preprocessing directive #def; did you mean #ifdef? 1 | Hello world | ^~~ | ifdef