gcc.c (static_spec_functions): Add if-exists-else spec function.
authorJason Thorpe <thorpej@gcc.gnu.org>
Tue, 26 Nov 2002 00:31:31 +0000 (00:31 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Tue, 26 Nov 2002 00:31:31 +0000 (00:31 +0000)
commit152a5a9c947ff82ced5cb47beb197f53330ea12c
treefb57bd2526716f6ab368a2f04bc887feb665ac9b
parenta4967b8db12d7f2d9b0d80830507f806c4c36e5b
gcc.c (static_spec_functions): Add if-exists-else spec function.

* gcc.c (static_spec_functions): Add if-exists-else spec
function.
(if_exists_else_spec_function): New function.
* doc/invoke.texi: Document the if-exists-else spec function.

* config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
"%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".

From-SVN: r59480
gcc/config/netbsd-elf.h
gcc/doc/invoke.texi
gcc/gcc.c