https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32528
--- Comment #9 from Eric Gallager ---
(In reply to Paolo Bonzini from comment #7)
> re. comment #5, like this?
>
> Index: gcc.c
> ===
> --- gcc.c (revision 128902)
> +++ gcc.c (working copy)
> @@ -4685,6 +4685,8 @@ do_spec_1 (const char *spec, int inswitc
> fatal ("spec '%s' invalid", spec);
>
> case 'b':
> + if (!IS_ABSOLUTE_PATH (input_basename[0]) && input_basename[0] ==
> '-')
> + obstack_grow (, "./", 2);
> obstack_grow (, input_basename, basename_length);
> arg_going = 1;
> break;
>
> Anybody wants to bootstrap/test/regtest this?
> Paolo
Try sending it to the gcc-patches to see if anyone can test it. I'd try the
patch myself, but bootstrap is currently broken for me.