summaryrefslogtreecommitdiffstats
path: root/test/Driver/netbsd.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Secure PLT as default on NetBSD/PowerPC.Joerg Sonnenberger2019-02-271-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355033 91177308-0d34-0410-b5e6-96231b3b80d8
* [ADT] Normalize empty triple componentsPetr Hosek2018-08-081-80/+80
| | | | | | | | | | | | | | | | | LLVM triple normalization is handling "unknown" and empty components differently; for example given "x86_64-unknown-linux-gnu" and "x86_64-linux-gnu" which should be equivalent, triple normalization returns "x86_64-unknown-linux-gnu" and "x86_64--linux-gnu". autoconf's config.sub returns "x86_64-unknown-linux-gnu" for both "x86_64-linux-gnu" and "x86_64-unknown-linux-gnu". This changes the triple normalization to behave the same way, replacing empty triple components with "unknown". This addresses PR37129. Differential Revision: https://reviews.llvm.org/D50219 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339294 91177308-0d34-0410-b5e6-96231b3b80d8
* Support linking static PIE binaries on NetBSDJoerg Sonnenberger2018-07-121-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336947 91177308-0d34-0410-b5e6-96231b3b80d8
* Ensure that clang -pthread creates the right macro. -D_POSIX_THREADSJoerg Sonnenberger2017-01-161-0/+6
| | | | | | | seems to have been a C&P error from old GCC specs for OpenBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292119 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend NetBSD/AArch64 to cover Big Endian as well.Joerg Sonnenberger2017-01-091-0/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291436 91177308-0d34-0410-b5e6-96231b3b80d8
* Give FileCheck a hint on which ld to match. Under Windows, the preferredJoerg Sonnenberger2016-06-061-3/+3
| | | | | | | | | match was the ld.elf_so that should be matched in a second step. Add one of the ever-present-but-irrelevant-for-this-test arguments to the pattern to force matching the right argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271893 91177308-0d34-0410-b5e6-96231b3b80d8
* Add PIE magic for NetBSD. Add tests for the correct flags forJoerg Sonnenberger2016-06-041-0/+36
| | | | | | | non-shared, PIE and shared output mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271801 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that Sparc/Sparc64 backend is mostly usable, provide the sameJoerg Sonnenberger2016-02-111-20/+41
| | | | | | | | linking defaults as other NetBSD targets, i.e. compiler_rt-in-libc and libc++ as STL. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260616 91177308-0d34-0410-b5e6-96231b3b80d8
* Reorganise CPU handling for Sparc. When using -mcpu=v9 and co, __sparcv8Joerg Sonnenberger2015-11-091-1/+1
| | | | | | | | | | is not defined for 32bit mode, but __sparcv9 is. Pass down the correct -target-cpu flags to the backend, so that instruction restrictions are applied correctly. Pass down the correct -A flag when not using IAS. The latter is limited to NetBSD targets in this commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252545 91177308-0d34-0410-b5e6-96231b3b80d8
* For the --be8 flag, check explicitly for pre-v7 / pre-v6m cores.Joerg Sonnenberger2015-01-281-1/+10
| | | | | | | | | Those used the old Big Endian support on ARM and don't need flags. Refactor the logic in a separate common function, which also looks at -march. Add corresponding logic for the Linux toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227393 91177308-0d34-0410-b5e6-96231b3b80d8
* For NetBSD/ARM-EB, link with --be8. Support for the older BE32 isJoerg Sonnenberger2015-01-261-1/+7
| | | | | | | currently not planned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227088 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the big endian emulations for NetBSD/arm in EB mode.Joerg Sonnenberger2014-08-141-0/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215670 91177308-0d34-0410-b5e6-96231b3b80d8
* For NetBSD, use the same settings for PPC64 as for PPC when it comes toJoerg Sonnenberger2014-08-131-3/+27
| | | | | | | | integrated assembler, libc++ and libgcc. Set emulation for ld for both platforms for correct -m32 handling. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215551 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the correct fallback directory for EABIHF targets on NetBSD/arm.Joerg Sonnenberger2014-08-091-6/+12
| | | | | | | From Matt Thomas. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215292 91177308-0d34-0410-b5e6-96231b3b80d8
* NetBSD/aarch64 has no libgcc or libstdc++. Drop arm64 tests.Joerg Sonnenberger2014-08-091-44/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215291 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that PIC generation on PPC32 is supported, hook up linking supportJoerg Sonnenberger2014-07-251-0/+20
| | | | | | | for NetBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213972 91177308-0d34-0410-b5e6-96231b3b80d8
* Drop libgcc and default to libc++ for NetBSD/ARM on 6.99.40+.Joerg Sonnenberger2014-05-071-1/+0
| | | | | | | | Don't bother with keeping the old support for x86_64 in 6.99.23+, just use a single range. Update test cases for the always-on --eh-frame-hdr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208170 91177308-0d34-0410-b5e6-96231b3b80d8
* [ARM64] Add ARM64 RUN lines to a bunch of tests that had AARCH64 RUN lines.James Molloy2014-04-171-0/+40
| | | | | | | This covers all tests in tests/Driver and tests/Preprocessor, but there are some failing tests in test/Sema that need looking into. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206464 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle -m32 for NetBSD/sparc64 correctly. Extend test case to also checkJoerg Sonnenberger2014-04-161-10/+20
| | | | | | | ARM, MIPS and i386 ABIs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206416 91177308-0d34-0410-b5e6-96231b3b80d8
* Always use --eh-frame-hdr on NetBSD, even for -static.Joerg Sonnenberger2014-03-131-10/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203742 91177308-0d34-0410-b5e6-96231b3b80d8
* Default to ARMv5e for NetBSD/EABI, ARMv4 for APCS.Joerg Sonnenberger2014-02-211-10/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201894 91177308-0d34-0410-b5e6-96231b3b80d8
* Hook up NetBSD/sparc and NetBSD/sparc64 as and ld invocations.Joerg Sonnenberger2014-02-191-0/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201730 91177308-0d34-0410-b5e6-96231b3b80d8
* Use correct ld emulation for EABI hardware float triple on NetBSD.Joerg Sonnenberger2014-02-061-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200946 91177308-0d34-0410-b5e6-96231b3b80d8
* Test cases for NetBSD/eARM Joerg Sonnenberger2014-02-031-0/+74
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200709 91177308-0d34-0410-b5e6-96231b3b80d8
* Hook up NetBSD/aarch64.Joerg Sonnenberger2014-01-131-1/+40
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199124 91177308-0d34-0410-b5e6-96231b3b80d8
* clang/test/Driver/netbsd.c*: Tweak path separators to be matched on win32 ↵NAKAMURA Takumi2013-10-151-18/+18
| | | | | | driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192676 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide a dummy NetBSD tree and use --sysroot in the driver test.Joerg Sonnenberger2013-10-141-18/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192641 91177308-0d34-0410-b5e6-96231b3b80d8
* For NetBSD/current on X86 do not use libgcc and default to libc++.Joerg Sonnenberger2013-10-141-0/+45
Adjust linkage to make more sense for older releases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192615 91177308-0d34-0410-b5e6-96231b3b80d8