summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/netbsd.c
Commit message (Collapse)AuthorAgeFilesLines
* Default to -fuse-init-arrayFangrui Song2019-12-121-15/+15
| | | | | | | | | | | | | | | | | | | 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
* Fix -fuse-init-array decision logic on NetBSDJoerg Sonnenberger2019-10-211-0/+15
| | | | | | | For NetBSD 9 and later, it is the default. On older versions, only ARM and AArch64 use it by default. llvm-svn: 375468
* Use Secure PLT as default on NetBSD/PowerPC.Joerg Sonnenberger2019-02-271-0/+5
| | | | llvm-svn: 355033
* [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 llvm-svn: 339294
* Support linking static PIE binaries on NetBSDJoerg Sonnenberger2018-07-121-0/+13
| | | | llvm-svn: 336947
* 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. llvm-svn: 292119
* Extend NetBSD/AArch64 to cover Big Endian as well.Joerg Sonnenberger2017-01-091-0/+36
| | | | llvm-svn: 291436
* 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. llvm-svn: 271893
* Add PIE magic for NetBSD. Add tests for the correct flags forJoerg Sonnenberger2016-06-041-0/+36
| | | | | | non-shared, PIE and shared output mode. llvm-svn: 271801
* 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. llvm-svn: 260616
* 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. llvm-svn: 252545
* 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. llvm-svn: 227393
* For NetBSD/ARM-EB, link with --be8. Support for the older BE32 isJoerg Sonnenberger2015-01-261-1/+7
| | | | | | currently not planned. llvm-svn: 227088
* Use the big endian emulations for NetBSD/arm in EB mode.Joerg Sonnenberger2014-08-141-0/+35
| | | | llvm-svn: 215670
* 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. llvm-svn: 215551
* Use the correct fallback directory for EABIHF targets on NetBSD/arm.Joerg Sonnenberger2014-08-091-6/+12
| | | | | | From Matt Thomas. llvm-svn: 215292
* NetBSD/aarch64 has no libgcc or libstdc++. Drop arm64 tests.Joerg Sonnenberger2014-08-091-44/+0
| | | | llvm-svn: 215291
* Now that PIC generation on PPC32 is supported, hook up linking supportJoerg Sonnenberger2014-07-251-0/+20
| | | | | | for NetBSD. llvm-svn: 213972
* 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. llvm-svn: 208170
* [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. llvm-svn: 206464
* Handle -m32 for NetBSD/sparc64 correctly. Extend test case to also checkJoerg Sonnenberger2014-04-161-10/+20
| | | | | | ARM, MIPS and i386 ABIs. llvm-svn: 206416
* Always use --eh-frame-hdr on NetBSD, even for -static.Joerg Sonnenberger2014-03-131-10/+10
| | | | llvm-svn: 203742
* Default to ARMv5e for NetBSD/EABI, ARMv4 for APCS.Joerg Sonnenberger2014-02-211-10/+21
| | | | llvm-svn: 201894
* Hook up NetBSD/sparc and NetBSD/sparc64 as and ld invocations.Joerg Sonnenberger2014-02-191-0/+44
| | | | llvm-svn: 201730
* Use correct ld emulation for EABI hardware float triple on NetBSD.Joerg Sonnenberger2014-02-061-0/+6
| | | | llvm-svn: 200946
* Test cases for NetBSD/eARM Joerg Sonnenberger2014-02-031-0/+74
| | | | llvm-svn: 200709
* Hook up NetBSD/aarch64.Joerg Sonnenberger2014-01-131-1/+40
| | | | llvm-svn: 199124
* clang/test/Driver/netbsd.c*: Tweak path separators to be matched on win32 ↵NAKAMURA Takumi2013-10-151-18/+18
| | | | | | driver. llvm-svn: 192676
* Provide a dummy NetBSD tree and use --sysroot in the driver test.Joerg Sonnenberger2013-10-141-18/+30
| | | | llvm-svn: 192641
* 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. llvm-svn: 192615
OpenPOWER on IntegriCloud