Joerg Sonnenberger
ec353d3fc6
Reorganise CPU handling for Sparc. When using -mcpu=v9 and co, __sparcv8
...
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
2015-11-09 23:39:45 +00:00
Joerg Sonnenberger
1689d3f732
For the --be8 flag, check explicitly for pre-v7 / pre-v6m cores.
...
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
2015-01-28 23:30:39 +00:00
Joerg Sonnenberger
dceac987bd
For NetBSD/ARM-EB, link with --be8. Support for the older BE32 is
...
currently not planned.
llvm-svn: 227088
2015-01-26 12:30:16 +00:00
Joerg Sonnenberger
b704534233
Use the big endian emulations for NetBSD/arm in EB mode.
...
llvm-svn: 215670
2014-08-14 19:12:41 +00:00
Joerg Sonnenberger
dd13b30c29
For NetBSD, use the same settings for PPC64 as for PPC when it comes to
...
integrated assembler, libc++ and libgcc. Set emulation for ld for both
platforms for correct -m32 handling.
llvm-svn: 215551
2014-08-13 14:17:32 +00:00
Joerg Sonnenberger
17a80e49e7
Use the correct fallback directory for EABIHF targets on NetBSD/arm.
...
From Matt Thomas.
llvm-svn: 215292
2014-08-09 19:01:52 +00:00
Joerg Sonnenberger
323cea90da
NetBSD/aarch64 has no libgcc or libstdc++. Drop arm64 tests.
...
llvm-svn: 215291
2014-08-09 18:28:36 +00:00
Joerg Sonnenberger
c888757a2d
Now that PIC generation on PPC32 is supported, hook up linking support
...
for NetBSD.
llvm-svn: 213972
2014-07-25 20:57:24 +00:00
Joerg Sonnenberger
1ea6647838
Drop libgcc and default to libc++ for NetBSD/ARM on 6.99.40+.
...
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
2014-05-07 08:45:26 +00:00
James Molloy
96061a6db1
[ARM64] Add ARM64 RUN lines to a bunch of tests that had AARCH64 RUN lines.
...
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
2014-04-17 12:51:36 +00:00
Joerg Sonnenberger
8280abe47f
Handle -m32 for NetBSD/sparc64 correctly. Extend test case to also check
...
ARM, MIPS and i386 ABIs.
llvm-svn: 206416
2014-04-16 20:44:17 +00:00
Joerg Sonnenberger
52be0b4cf4
Always use --eh-frame-hdr on NetBSD, even for -static.
...
llvm-svn: 203742
2014-03-13 00:42:01 +00:00
Joerg Sonnenberger
695fdb3bc2
Default to ARMv5e for NetBSD/EABI, ARMv4 for APCS.
...
llvm-svn: 201894
2014-02-21 21:53:33 +00:00
Joerg Sonnenberger
ed3f0693cb
Hook up NetBSD/sparc and NetBSD/sparc64 as and ld invocations.
...
llvm-svn: 201730
2014-02-19 22:40:18 +00:00
Joerg Sonnenberger
83a33c0cd7
Use correct ld emulation for EABI hardware float triple on NetBSD.
...
llvm-svn: 200946
2014-02-06 21:04:32 +00:00
Joerg Sonnenberger
d5e2f094d4
Test cases for NetBSD/eARM
...
llvm-svn: 200709
2014-02-03 17:46:52 +00:00
Joerg Sonnenberger
9853439b5b
Hook up NetBSD/aarch64.
...
llvm-svn: 199124
2014-01-13 18:25:15 +00:00
NAKAMURA Takumi
d936911923
clang/test/Driver/netbsd.c*: Tweak path separators to be matched on win32 driver.
...
llvm-svn: 192676
2013-10-15 06:36:47 +00:00
Joerg Sonnenberger
033e5a21fa
Provide a dummy NetBSD tree and use --sysroot in the driver test.
...
llvm-svn: 192641
2013-10-14 23:26:44 +00:00
Joerg Sonnenberger
a443563ff0
For NetBSD/current on X86 do not use libgcc and default to libc++.
...
Adjust linkage to make more sense for older releases.
llvm-svn: 192615
2013-10-14 20:13:05 +00:00