aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-08-27 19:49:05 +0100
committerIain Sandoe <iain@sandoe.co.uk>2021-08-29 20:51:29 +0100
commitc3c669ac811429033c0151f910b38fc009e21ca8 (patch)
tree336153c29753db835d91736c4f4ef7ddbc4c111b /gcc/fortran
parent766f5f8726965dfe69e70f234a08f6bccedc144e (diff)
downloadgcc-c3c669ac811429033c0151f910b38fc009e21ca8.zip
gcc-c3c669ac811429033c0151f910b38fc009e21ca8.tar.gz
gcc-c3c669ac811429033c0151f910b38fc009e21ca8.tar.bz2
Darwin: Fixes for darwin_libc_has_function.
Firstly, the checks for availability need not be run for any currently supported Darwin version (or for any version of Darwin on x86). In fact, the only test that is needed that differs from the default is for the availbaility of sincos. Test that and then fall back to the default implementation. Secondly, the funtion appears to be called from the Jit library before the value of darwin_macosx_version_min has been set up - at present we work around this by guarding the checks on having a non-null pointer for darwin_macosx_version_min. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/ChangeLog: * config/darwin.c (darwin_libc_has_function): Do not run the checks for x86 or modern Darwin. Make sure that there is a value set for darwin_macosx_version_min before testing.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions