summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/riscv32-toolchain-extra.c
Commit message (Collapse)AuthorAgeFilesLines
* [RISCV] Fix sysroot tests without GCC on RISC-V hosts with GCCLuís Marques2020-06-251-0/+1
| | | | | | | | | | | | | D68391 added tests that check scenarios where no RISC-V GCC toolchain is supposed to be detected. When running the tests on RISC-V hosts the system's GCC toolchain will be detected, and the tests will fail. This patch adds a `--gcc-toolchain` option pointing to a path where no GCC toolchain is present, ensuring that the tests are run under the expected conditions, and therefore are able to pass in all test environments. Differential Revision: https://reviews.llvm.org/D75061 (cherry picked from commit 91f7f0d8e3ef2b6be07bc9621de075ff11c730c9)
* [clang] [test] Fix riscv-toolchain-extra to be less picky about pathsMichał Górny2020-01-141-3/+3
| | | | | | | Fix riscv-toolchain-extra tests to pass when CLANG_RESOURCE_DIR is set to another value than the default. Differential Revision: https://reviews.llvm.org/D72591
* Default to -fuse-init-arrayFangrui Song2019-12-121-1/+0
| | | | | | | | | | | | | | | | | | | Very few ELF platforms still use .ctors/.dtors now. Linux (glibc: 1999-07), DragonFlyBSD, FreeBSD (2012-03) and Solaris have supported .init_array for many years. Some architectures like AArch64/RISC-V default to .init_array . GNU ld and gold can even convert .ctors to .init_array . It makes more sense to flip the CC1 default, and only uses -fno-use-init-array on platforms that don't support .init_array . For example, OpenBSD did not support DT_INIT_ARRAY before Aug 2016 (https://github.com/openbsd/src/commit/86fa57a2792c6374b0849dd7b818a11e676e60ba) I may miss some ELF platforms that still use .ctors, but their maintainers can easily diagnose such problems. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D71393
* [RISCV] Add missing REQUIRES to clang testsDavid Zarzycki2019-11-231-1/+1
| | | | Fixes: e0f22fe04a5c9eb244ff0533549743b7deb03b99
* [RISCV] Use compiler-rt if no GCC installation detectedEdward Jones2019-11-221-9/+9
| | | | | | | | If a GCC installation is not detected, then this attempts to use compiler-rt and the compiler-rt crtbegin/crtend implementations as a fallback. Differential Revision: https://reviews.llvm.org/D68407
* Revert "[RISCV] Use compiler-rt if no GCC installation detected"Richard Smith2019-11-131-8/+8
| | | | | | | This change causes test failures for builds configured with -DCLANG_DEFAULT_RTLIB=compiler-rt. This reverts commit 3289352e6bb9d2949c678c625478024bf2a5fbfb.
* [RISCV] Use compiler-rt if no GCC installation detectedEdward Jones2019-11-131-8/+8
| | | | | | | | If a GCC installation is not detected, then this attempts to use compiler-rt and the compiler-rt crtbegin/crtend implementations as a fallback. Differential Revision: https://reviews.llvm.org/D68407
* [RISCV] Improve sysroot computation if no GCC install detectedEdward Jones2019-11-071-0/+33
If a GCC installed is not detected, the driver would default to the root of the filesystem. This is not ideal when this doesn't match the install directory of the toolchain and can cause undesireable behavior such as picking up system libraries or the system linker when cross-compiling. Differential Revision: https://reviews.llvm.org/D68391
OpenPOWER on IntegriCloud