From: Matthew Voss Date: Wed, 7 Mar 2018 20:48:16 +0000 (+0000) Subject: Correct the alignment for the PS4 target X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84305dfe2eebfa5b373c804ed4ea069d028b568c;p=clang Correct the alignment for the PS4 target https://reviews.llvm.org/D44218 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326942 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets/OSTargets.h b/lib/Basic/Targets/OSTargets.h index 05fcd9367a..70bf1e6655 100644 --- a/lib/Basic/Targets/OSTargets.h +++ b/lib/Basic/Targets/OSTargets.h @@ -485,6 +485,7 @@ public: default: case llvm::Triple::x86_64: this->MCountName = ".mcount"; + this->NewAlign = 256; break; } } diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index 2ed74dcf2c..1b4f500742 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -8965,6 +8965,9 @@ // 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{{.*}}