[PATCH] D106410: [PowerPC] Emit error for Altivec vector initializations when -faltivec-src-compat=gcc is specified

Amy Kwan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 20 16:18:24 PDT 2021


amyk created this revision.
amyk added reviewers: PowerPC, nemanjai, stefanp.
amyk added projects: PowerPC, LLVM, clang.
Herald added a subscriber: shchenz.
amyk requested review of this revision.

Under the `-faltivec-src-compat=gcc` option, AltiVec vector initialization should be treated
as if they were compiled with gcc - which is, to emit an error when the vectors are initialized
in the parenthesized or non-parenthesized manner. This patch implements this behaviour.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106410

Files:
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaCast.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/CodeGen/vector-bool-pixel-altivec-init-no-parentheses.c
  clang/test/CodeGen/vector-bool-pixel-altivec-init.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106410.360312.patch
Type: text/x-patch
Size: 15316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210720/221a4e6b/attachment-0001.bin>


More information about the cfe-commits mailing list