mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
39 lines
1.6 KiB
Text
39 lines
1.6 KiB
Text
------------------------------------------------------------------------
|
|
r280672 | ed | 2016-09-05 18:38:34 +0000 (Mon, 05 Sep 2016) | 6 lines
|
|
|
|
Add support for targeting armv6-unknown-cloudabi-eabihf.
|
|
|
|
I'm in the progress of adding ARMv6 support to CloudABI. On the compiler
|
|
side, everything seems to work properly with this tiny change applied.
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
Index: test/Preprocessor/init.c
|
|
===================================================================
|
|
--- tools/clang/test/Preprocessor/init.c (revision 280671)
|
|
+++ tools/clang/test/Preprocessor/init.c (revision 280672)
|
|
@@ -1975,6 +1975,11 @@
|
|
// ARMEABIHARDFP:#define __arm 1
|
|
// ARMEABIHARDFP:#define __arm__ 1
|
|
|
|
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=armv6-unknown-cloudabi-eabihf < /dev/null | FileCheck -match-full-lines -check-prefix ARMV6-CLOUDABI %s
|
|
+//
|
|
+// ARMV6-CLOUDABI:#define __CloudABI__ 1
|
|
+// ARMV6-CLOUDABI:#define __arm__ 1
|
|
+
|
|
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=arm-netbsd-eabi < /dev/null | FileCheck -match-full-lines -check-prefix ARM-NETBSD %s
|
|
//
|
|
// ARM-NETBSD-NOT:#define _LP64
|
|
Index: lib/Basic/Targets.cpp
|
|
===================================================================
|
|
--- tools/clang/lib/Basic/Targets.cpp (revision 280671)
|
|
+++ tools/clang/lib/Basic/Targets.cpp (revision 280672)
|
|
@@ -8261,6 +8261,8 @@
|
|
return new DarwinARMTargetInfo(Triple, Opts);
|
|
|
|
switch (os) {
|
|
+ case llvm::Triple::CloudABI:
|
|
+ return new CloudABITargetInfo<ARMleTargetInfo>(Triple, Opts);
|
|
case llvm::Triple::Linux:
|
|
return new LinuxTargetInfo<ARMleTargetInfo>(Triple, Opts);
|
|
case llvm::Triple::FreeBSD:
|