[llvm-branch-commits] [cfe-branch] r353831 - Merging r353656:

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 12 03:19:21 PST 2019


Author: hans
Date: Tue Feb 12 03:19:21 2019
New Revision: 353831

URL: http://llvm.org/viewvc/llvm-project?rev=353831&view=rev
Log:
Merging r353656:
------------------------------------------------------------------------
r353656 | brad | 2019-02-11 03:53:16 +0100 (Mon, 11 Feb 2019) | 4 lines

long double is double on OpenBSD/NetBSD/PPC.

Patch by George Koehler.

------------------------------------------------------------------------

Modified:
    cfe/branches/release_80/   (props changed)
    cfe/branches/release_80/lib/Basic/Targets/PPC.h
    cfe/branches/release_80/test/CodeGen/powerpc_types.c

Propchange: cfe/branches/release_80/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Tue Feb 12 03:19:21 2019
@@ -1,4 +1,4 @@
 /cfe/branches/type-system-rewrite:134693-134817
-/cfe/trunk:351334,351340,351344,351360,351457,351459,351531,351579-351580,352040,352079,352099,352102,352105,352156,352221-352222,352229,352307,352323,352463,352539,352610,352672,352822,353142,353393,353402,353411,353431,353493,353495
+/cfe/trunk:351334,351340,351344,351360,351457,351459,351531,351579-351580,352040,352079,352099,352102,352105,352156,352221-352222,352229,352307,352323,352463,352539,352610,352672,352822,353142,353393,353402,353411,353431,353493,353495,353656
 /cfe/trunk/test:170344
 /cfe/trunk/test/SemaTemplate:126920

Modified: cfe/branches/release_80/lib/Basic/Targets/PPC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_80/lib/Basic/Targets/PPC.h?rev=353831&r1=353830&r2=353831&view=diff
==============================================================================
--- cfe/branches/release_80/lib/Basic/Targets/PPC.h (original)
+++ cfe/branches/release_80/lib/Basic/Targets/PPC.h Tue Feb 12 03:19:21 2019
@@ -331,9 +331,15 @@ public:
       break;
     }
 
-    if (getTriple().isOSFreeBSD()) {
+    switch (getTriple().getOS()) {
+    case llvm::Triple::FreeBSD:
+    case llvm::Triple::NetBSD:
+    case llvm::Triple::OpenBSD:
       LongDoubleWidth = LongDoubleAlign = 64;
       LongDoubleFormat = &llvm::APFloat::IEEEdouble();
+      break;
+    default:
+      break;
     }
 
     // PPC32 supports atomics up to 4 bytes.

Modified: cfe/branches/release_80/test/CodeGen/powerpc_types.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_80/test/CodeGen/powerpc_types.c?rev=353831&r1=353830&r2=353831&view=diff
==============================================================================
--- cfe/branches/release_80/test/CodeGen/powerpc_types.c (original)
+++ cfe/branches/release_80/test/CodeGen/powerpc_types.c Tue Feb 12 03:19:21 2019
@@ -1,4 +1,6 @@
 // RUN: %clang_cc1 -triple powerpc-unknown-freebsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s
+// RUN: %clang_cc1 -triple powerpc-unknown-netbsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s
+// RUN: %clang_cc1 -triple powerpc-unknown-openbsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s
 
 #include <stdarg.h>
 




More information about the llvm-branch-commits mailing list