]> granicus.if.org Git - clang/commitdiff
Correct the alignment for the PS4 target
authorMatthew Voss <matthew.voss@sony.com>
Wed, 7 Mar 2018 20:48:16 +0000 (20:48 +0000)
committerMatthew Voss <matthew.voss@sony.com>
Wed, 7 Mar 2018 20:48:16 +0000 (20:48 +0000)
https://reviews.llvm.org/D44218

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326942 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets/OSTargets.h
test/Preprocessor/init.c

index 05fcd9367a1a067474788ed26a24c038f93ac050..70bf1e6655beaa67004def1a62ed3c4a7064a21f 100644 (file)
@@ -485,6 +485,7 @@ public:
     default:
     case llvm::Triple::x86_64:
       this->MCountName = ".mcount";
+      this->NewAlign = 256;
       break;
     }
   }
index 2ed74dcf2c2d4ae11702678c33b5048b48c78464..1b4f5007425556827aab2b4242297d74e456f526 100644 (file)
 // PS4:#define __x86_64__ 1
 // PS4:#define unix 1
 //
+// RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -triple=x86_64-scei-ps4 < /dev/null | FileCheck -match-full-lines -check-prefix PS4-CXX %s
+// PS4-CXX:#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 32UL
+//
 // RUN: %clang_cc1 -E -dM -triple=x86_64-pc-mingw32 < /dev/null | FileCheck -match-full-lines -check-prefix X86-64-DECLSPEC %s
 // RUN: %clang_cc1 -E -dM -fms-extensions -triple=x86_64-unknown-mingw32 < /dev/null | FileCheck -match-full-lines -check-prefix X86-64-DECLSPEC %s
 // X86-64-DECLSPEC: #define __declspec{{.*}}