Driver: Fix bootstrap with DEFAULT_{ASSEMBLER,LINKER,DSYMUTIL}.
commitabdf63d782cba82b5ecf264248518cbb065650ed
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 20 Sep 2021 06:41:49 +0000 (20 07:41 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 20 Sep 2021 06:46:19 +0000 (20 07:46 +0100)
tree4ce0b5c1e3ec11deed3d1c8fae553412c2539b6e
parent34fac9ef724ab7c1bee69aaa214327e2cb8bef30
Driver: Fix bootstrap with DEFAULT_{ASSEMBLER,LINKER,DSYMUTIL}.

The patch at r12-3662-g5fee8a0a9223d factored the code for
printing the names of programes into a separate function.
However the moved editions that print out the names of the
assembler, linker (and dsymutil on Darwin) when those are
specified at configure-time were not adjusted accordingly,
leading to a bootstrap fail.

Fixed by testing specifically for execute OK, since we know
these are programs.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:

* gcc.c: Test for execute OK when we find the
programs for assembler linker and dsymutil and those
were specified at configure-time.
gcc/gcc.c