[PATCH] D117972: [PowerPC] Fix SSE translation on FreeBSD

Piotr Kubaj via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 22 15:45:00 PST 2022

pkubaj created this revision.
pkubaj added reviewers: adalava, nemanjai.
Herald added subscribers: shchenz, kbarton, krytarowski.
pkubaj requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Fix for https://github.com/llvm/llvm-project/issues/53085

  rG LLVM Github Monorepo



Index: clang/lib/Headers/ppc_wrappers/mm_malloc.h
--- clang/lib/Headers/ppc_wrappers/mm_malloc.h
+++ clang/lib/Headers/ppc_wrappers/mm_malloc.h
@@ -19,7 +19,11 @@
 #ifndef __cplusplus
 extern int posix_memalign (void **, size_t, size_t);
+#if defined(__linux__)
 extern "C" int posix_memalign (void **, size_t, size_t) throw ();
+#elif defined(__FreeBSD__)
+extern "C" int posix_memalign (void **, size_t, size_t);
 static __inline void *

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117972.402268.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220122/78e6b9ba/attachment.bin>

More information about the cfe-commits mailing list