diff options
author | Douglas Rupp <rupp@adacore.com> | 2020-04-07 14:05:57 -0700 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2020-10-23 15:21:38 +0000 |
commit | 081dc85073da351470b2851e8a93c769cb74f341 (patch) | |
tree | 537e1aec255eade2201b32dc8804fcf1447e84f6 /gcc/tree-inline.c | |
parent | 940e68b9de1981e9c25a7dddc5027354011f0518 (diff) | |
download | gcc-081dc85073da351470b2851e8a93c769cb74f341.zip gcc-081dc85073da351470b2851e8a93c769cb74f341.tar.gz gcc-081dc85073da351470b2851e8a93c769cb74f341.tar.bz2 |
Add a if-exists-then-else built-in spec function
This patch adds 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 return the name of the
tested file if it exists.
This new function is of help to a forthcoming change for
VxWorks where we check for the presence of a specific header
file to decide the name of a library to include in the link
closure.
2020-10-23 Douglas Rupp <rupp@adacore.com>
gcc/
* gcc.c (if-exists-then-else): New built-in spec function.
* doc/invoke.texi: Document it.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions