[PATCH] D87611: [SystemZ][z/OS] Set aligned allocation unavailable by default for z/OS

Fanbo Meng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 10:33:36 PDT 2020


fanbo-meng added inline comments.


================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:1841
-        << IsDelete << FD.getType().getAsString() << OSName
-        << alignedAllocMinVersion(T.getOS()).getAsString();
     Diag(Loc, diag::note_silence_aligned_allocation_unavailable);
----------------
hubert.reinterpretcast wrote:
> Just to ensure we are on the same page:
> Passing `-Xclang -faligned-alloc-unavailable` on the non-Apple platforms does very bad things (hits "unreachable" and otherwise falls off the end of a function without initializing a return value). Part of this patch makes passing `-Xclang -faligned-alloc-unavailable` okay on z/OS.
Yes, as we are trying to solve the same problem like Darwin (lack of support in system libraries), we use the same mechanism that are introduced for that.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87611/new/

https://reviews.llvm.org/D87611



More information about the cfe-commits mailing list