GCC: Can't use alignas() together with __attribute__()
It's because GCC has problems when mixing the alignas() together with __attribute__() (that is used to export the symbols). The best solution is to use ALIGNAS() macro from //base/compiler_specific.h together with alignof() to have the equal functionality that compiles on GCC as well as on clang. Bug: 819294 Change-Id: Ieb169592a2965f17a18bfc88d28418eb723a4e5a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1806735 Auto-Submit: Tomáš Popela <tomas.popela@gmail.com> Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by:Alex Clarke <alexclarke@chromium.org> Cr-Commit-Position: refs/heads/master@{#697330}
Showing
Please register or sign in to comment