diff options
| author | Hans Wennborg <hans@hanshq.net> | 2018-08-14 09:10:53 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2018-08-14 09:10:53 +0000 |
| commit | 8a6427840e5e0d07517069e87aee853f5bc8f51a (patch) | |
| tree | ea72e9a7affc81edc5080a9466ce6b8061355433 /llvm/lib/CodeGen/MachineSSAUpdater.cpp | |
| parent | 6141c26486bcf57b88b09ade9eff2a4ff3a06f6e (diff) | |
| download | bcm5719-llvm-8a6427840e5e0d07517069e87aee853f5bc8f51a.tar.gz bcm5719-llvm-8a6427840e5e0d07517069e87aee853f5bc8f51a.zip | |
Merging r338934:
------------------------------------------------------------------------
r338934 | vsapsai | 2018-08-04 01:12:37 +0200 (Sat, 04 Aug 2018) | 29 lines
[Preprocessor] Allow libc++ to detect when aligned allocation is unavailable.
Libc++ needs to know when aligned allocation is supported by clang, but is
otherwise unavailable at link time. Otherwise, libc++ will incorrectly end up
generating calls to `__builtin_operator_new`/`__builtin_operator_delete` with
alignment arguments.
This patch implements the following changes:
* The `__cpp_aligned_new` feature test macro to no longer be defined when
aligned allocation is otherwise enabled but unavailable.
* The Darwin driver no longer passes `-faligned-alloc-unavailable` when the
user manually specifies `-faligned-allocation` or `-fno-aligned-allocation`.
* Instead of a warning Clang now generates a hard error when an aligned
allocation or deallocation function is referenced but unavailable.
Patch by Eric Fiselier.
Reviewers: rsmith, vsapsai, erik.pilkington, ahatanak, dexonsmith
Reviewed By: rsmith
Subscribers: Quuxplusone, cfe-commits
Differential Revision: https://reviews.llvm.org/D45015
------------------------------------------------------------------------
llvm-svn: 339660
Diffstat (limited to 'llvm/lib/CodeGen/MachineSSAUpdater.cpp')
0 files changed, 0 insertions, 0 deletions

