llvm-project/clang/test/Driver/Inputs
Rainer Orth 91a658b094 [Driver] Properly use values-X[ca].o, values-xpg[46].o on Solaris
Builtins-*-sunos :: compiler_rt_logbf_test.c currently FAILs on Solaris, both SPARC and
x86, 32 and 64-bit.

It turned out that this is due to different behaviour of logb depending on the C
standard compiled for, as documented on logb(3M):

  RETURN VALUES
         Upon successful completion, these functions return the exponent of x.
  
         If x is subnormal:
  
             o      For SUSv3-conforming applications compiled with the c99 com-
                    piler  driver  (see standards(7)), the exponent of x as if x
                    were normalized is returned.
  
             o      Otherwise, if compiled with the cc compiler  driver,  -1022,
                    -126,  and  -16382  are  returned  for  logb(), logbf(), and
                    logbl(), respectively.

Studio c99 and gcc control this by linking with the appropriate version of values-xpg[46].o, but clang uses neither of those.

The following patch fixes this by following what gcc does, as corrected some time ago in

  Fix use of Solaris values-Xc.o (PR target/40411)
  https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02350.html and
  https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02384.html.

Tested on x86_64-pc-solaris2.11, sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu.

Differential Revision: https://reviews.llvm.org/D64793

llvm-svn: 367866
2019-08-05 14:06:16 +00:00
..
B_opt_tree
CUDA/usr/local/cuda [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
CUDA-macosx/usr/local/cuda [CUDA] Driver changes to support CUDA compilation on MacOS. 2016-11-18 00:41:22 +00:00
CUDA-nolibdevice/usr/local/cuda [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
CUDA-symlinks [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
CUDA-windows/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0 [Driver] Driver changes to support CUDA compilation on Windows. 2017-01-05 16:52:29 +00:00
CUDA_80/usr/local/cuda [CUDA] Added support for CUDA-8 2016-09-28 17:47:40 +00:00
CUDA_90/usr/local/cuda [CUDA] Print an error if you try to compile with < sm_30 on CUDA 9. 2017-10-25 21:32:06 +00:00
MacOSX10.14.sdk [darwin] parse the SDK settings from SDKSettings.json if it exists and 2018-12-17 19:19:15 +00:00
Windows Vary Windows toolchain selection by -fuse-ld 2017-11-06 21:18:05 +00:00
ami_linux_tree Add a .keep file to prevent svn from skipping over an empty folder. 2018-07-24 06:49:27 +00:00
baremetal_arm/include/c++ Don't defer to the GCC driver for linking arm-baremetal 2017-05-25 15:42:13 +00:00
basic_android_ndk_tree [Driver] Reland again again: Default Android toolchains to libc++. 2018-11-05 20:57:46 +00:00
basic_android_tree [driver][mips] Support MIPS targets in modern Android NDK 2016-07-19 07:09:48 +00:00
basic_cross_linux_tree/usr
basic_darwin_sdk_libstdcxx_aarch64/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_libstdcxx_arm/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_libstdcxx_ppc/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_libstdcxx_x86/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_no_libcxx/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_no_libstdcxx/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_usr/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_usr_and_usr_local/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_sdk_usr_local/usr/local [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_toolchain/usr [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_darwin_toolchain_no_libcxx/usr/bin [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
basic_freebsd64_tree
basic_freebsd_tree
basic_fuchsia_tree [CMake][Fuchsia] Define asan+noexcept multilib 2019-07-13 08:07:10 +00:00
basic_hurd_tree Add Hurd target to Clang driver (2/2) 2018-11-29 03:49:14 +00:00
basic_linux_libcxx_tree/usr [runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++ 2019-05-22 21:08:33 +00:00
basic_linux_libcxxv2_tree/usr
basic_linux_libstdcxx_libcxxv2_tree/usr
basic_linux_tree Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) 2017-08-28 20:29:52 +00:00
basic_msp430_tree [MSP430] Provide a toolchain description 2019-01-15 19:44:05 +00:00
basic_myriad_tree Add renamed .o files that were omitted by "git llvm push" command 2017-12-19 16:34:13 +00:00
basic_netbsd_tree/usr/lib
basic_riscv32_tree [RISCV] Add driver for riscv32-unknown-elf baremetal target 2018-07-31 14:21:46 +00:00
basic_riscv64_tree [RISCV] Fix rL357699 by adding missing zero-length files 2019-04-04 14:36:07 +00:00
cl-libs
config Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config2 Enable configuration files in clang 2018-01-01 13:27:01 +00:00
cray_suse_gcc_tree [Driver] Support g++ headers in include/g++ 2018-11-13 21:38:45 +00:00
debian_6_mips64_tree
debian_6_mips_tree
debian_8_sparc64_tree
debian_8_sparc_multilib_tree
debian_multiarch_tree
debian_reduced_mips_tree
fake_install_tree
fedora_18_tree
fedora_21_tree/usr
freescale_ppc64_tree
freescale_ppc_tree
fuse_ld_windows [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows. 2018-02-27 02:51:30 +00:00
gcc_version_parsing1
gcc_version_parsing2
gcc_version_parsing3
gcc_version_parsing4
gcc_version_parsing5 [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations 2016-06-17 16:47:14 +00:00
gentoo_linux_gcc_4.6.2_tree/usr
gentoo_linux_gcc_4.6.4_tree/usr
gentoo_linux_gcc_4.9.3_tree/usr
gentoo_linux_gcc_4.9.x_tree [Driver] Update GCC libraries detection logic for Gentoo. 2018-04-07 19:59:58 +00:00
gentoo_linux_gcc_multi_version_tree [Driver] Fix finding multilib gcc install on Gentoo (with gcc-config) 2016-12-12 15:07:43 +00:00
hexagon_tree/Tools Add a dummy file in each subdirectory in test/Driver/Inputs/hexagon_tree 2016-10-17 18:04:05 +00:00
hip_dev_lib [HIP] Remove unused irif bitcode from test 2018-10-11 19:52:32 +00:00
hip_multiple_inputs Add HIP toolchain 2018-05-30 00:53:50 +00:00
libomptarget [OpenMP] Add flag for linking runtime bitcode library 2018-03-13 23:19:52 +00:00
mingw_arch_tree/usr
mingw_clang_tree/mingw32
mingw_mingw_builds_tree/mingw32
mingw_mingw_org_tree/mingw
mingw_msys2_tree/msys64/mingw32
mingw_opensuse_tree/usr
mingw_ubuntu_posix_tree/usr [GCC] Match a GCC version with a patch suffix without a third version component 2018-04-24 08:50:11 +00:00
mingw_ubuntu_tree/usr [test] Fix a typo in a test directory name. NFC. 2018-04-24 08:49:57 +00:00
mips_cs_tree [driver][mips] Revert support for CodeSourcery MIPS toolchain 2016-05-28 09:44:04 +00:00
mips_fsf_tree
mips_img_tree
mips_img_v2_tree [driver][mips] Follow-up to r270373. Add missed folder. 2016-05-22 22:06:19 +00:00
mips_mti_linux
mips_mti_tree [driver][mips] Support new versions of MIPS CodeScape toolchains 2016-05-22 18:18:07 +00:00
module
montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0
multiarch_freebsd64_tree
multilib_32bit_linux_tree
multilib_64bit_linux_tree
multilib_arm_linux_tree/usr/include/arm-linux-gnueabi
multilib_armeb_linux_tree/usr/include/armeb-linux-gnueabi
multilib_armebhf_linux_tree/usr/include/armeb-linux-gnueabihf
multilib_armhf_linux_tree/usr/include/arm-linux-gnueabihf
multilib_riscv_linux_sdk Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler. 2018-01-18 06:13:25 +00:00
openembedded_aarch64_linux_tree/usr [OpenEmbedded] Fix lib paths for OpenEmbedded targets 2018-07-30 19:44:13 +00:00
openembedded_arm_linux_tree/usr [OpenEmbedded] Fix lib paths for OpenEmbedded targets 2018-07-30 19:44:13 +00:00
opensuse_42.2_aarch64_tree/usr/lib64 [Driver] Add openSuse AArch64 Triple 2017-01-10 21:13:08 +00:00
opensuse_tumbleweed_armv6hl_tree/usr/lib Add support for openSUSE ARM Triples 2017-04-21 12:26:43 +00:00
opensuse_tumbleweed_armv7hl_tree/usr/lib Add support for openSUSE ARM Triples 2017-04-21 12:26:43 +00:00
opensuse_tumbleweed_riscv64_tree/usr/lib64 Add support for openSUSE RISC-V triple 2019-08-01 14:23:56 +00:00
prefixed_tools_tree
resource_dir [Driver] Support compiler-rt crtbegin.o/crtend.o for Linux 2019-04-30 19:35:14 +00:00
resource_dir_with_arch_subdir/lib/linux Add arch-specific directory to search path 2017-03-03 23:20:49 +00:00
resource_dir_with_per_target_subdir [Driver] Change layout of per-target runtimes to resemble multiarch 2019-05-27 23:23:50 +00:00
scei-ps4_tree/target
solaris_sparc_tree/usr [Driver] Properly use values-X[ca].o, values-xpg[46].o on Solaris 2019-08-05 14:06:16 +00:00
solaris_x86_tree/usr [Driver] Properly use values-X[ca].o, values-xpg[46].o on Solaris 2019-08-05 14:06:16 +00:00
suse_10.3_ppc64_tree
ubuntu_11.04_multiarch_tree
ubuntu_12.04_LTS_multiarch_tree
ubuntu_13.04_multiarch_tree
ubuntu_14.04_multiarch_tree
ubuntu_14.04_multiarch_tree2
x86-64_ubuntu_13.10
cc1-response.txt
config-1.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-2.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-2a.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-3.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-4.cfg [Driver] Don't warn about unused inputs in config files 2018-05-04 06:05:58 +00:00
config-5.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-6.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
empty.cfg [ConfigFiles] Update argument strings when merging argrument lists 2018-04-26 06:28:47 +00:00
file.ll
file.prof
gen-response.c
header0.h
header1.h
header2.h
header3.h
header4.h
in.so [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types. 2018-09-28 16:17:59 +00:00
pchfile.cpp
pchfile.h
rewrite-1.map Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
rewrite-2.map Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
rewrite.map Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
wildcard1.c
wildcard2.c