[patch] Add an if-exists-then-else spec function

2020-10-01 Thread Olivier Hainque
Hello, This patch is a proposal to add an if-exists-then-else builtin spec function, which tests for the existence of a file and returns one or the other of the following arguments depending on the result of the test. This differs from the existing if-exists or if-exists-else function which retur

Re: [patch] Add an if-exists-then-else spec function

2020-10-01 Thread Armin Brauns via Gcc-patches
On 01/10/2020 18.04, Olivier Hainque wrote: > Hello, > > This patch is a proposal to add an if-exists-then-else > builtin spec function, which tests for the existence of > a file and returns one or the other of the following > arguments depending on the result of the test. > Hello, could you pleas

Re: [patch] Add an if-exists-then-else spec function

2020-10-07 Thread Olivier Hainque
Hello Armin, > On 1 Oct 2020, at 18:20, Armin Brauns via Gcc-patches > wrote: > > > could you please make sure to update the documentation around > gcc/doc/invoke.texi:31574 accordingly? Oh, sure. > There's already a pending patch to make it more complete at > https://gcc.gnu.org/pipermail

Re: [patch] Add an if-exists-then-else spec function

2020-10-14 Thread Olivier Hainque
Hello, Here’s an updated version of originally proposed at https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555271.html with an extra documentation bit, as suggested by Armin’s comment quoted below. Re-tested with a couple of VxWorks builds. Ok to commit ? Thanks in advance! Best Reg

Re: [patch] Add an if-exists-then-else spec function

2020-10-22 Thread Joseph Myers
This is OK. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] Add an if-exists-then-else spec function

2020-10-23 Thread Olivier Hainque
> On 22 Oct 2020, at 22:52, Joseph Myers wrote: > > This is OK. Great, thanks Joseph!