<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/95d82583996b994446133eb5bad7d40b6399ca89">https://github.com/macports/macports-ports/commit/95d82583996b994446133eb5bad7d40b6399ca89</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 95d82583996 llvm-1[5-6]: backport upstream patch (memrchr unavailable)
</span>95d82583996 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 95d82583996b994446133eb5bad7d40b6399ca89
</span>Author: Erik BrĂ¥then Solem <erikbsolem@hotmail.com>
AuthorDate: Mon Aug 14 00:20:22 2023 +0200

<span style='display:block; white-space:pre;color:#404040;'>    llvm-1[5-6]: backport upstream patch (memrchr unavailable)
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Backport upstream patch that sets memrchr unavailable on
</span><span style='display:block; white-space:pre;color:#404040;'>    all Mac systems.
</span>---
 lang/llvm-15/Portfile                                      |  3 ++-
 lang/llvm-15/files/0026-llvm-set-memrchr-unavailable.patch | 11 +++++++++++
 lang/llvm-16/Portfile                                      |  3 ++-
 lang/llvm-16/files/0026-llvm-set-memrchr-unavailable.patch | 11 +++++++++++
 4 files changed, 26 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-15/Portfile b/lang/llvm-15/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 60d8233729d..38c2c370895 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-15/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-15/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +25,7 @@ set clang_exe_version   ${llvm_version}
</span> version                 ${llvm_version}.0.7
 
 name                    llvm-${llvm_version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                1
</span> subport                 mlir-${llvm_version}  { revision [ expr ${revision} + 0 ] }
 subport                 clang-${llvm_version} { revision [ expr ${revision} + 2 ] }
 subport                 lldb-${llvm_version}  { revision [ expr ${revision} + 1 ] }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -140,6 +140,7 @@ patchfiles-append \
</span>     0015-Fixup-libstdc-header-search-paths-for-older-versions.patch \
     0019-10.6-and-less-use-emulated-TLS-before-10.7.patch \
     0025-lldb-add-defines-needed-for-older-SDKs.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    0026-llvm-set-memrchr-unavailable.patch \
</span>     0999-i386-fix.diff
 
 if {${os.platform} eq "darwin" && ${os.major} < 14} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-15/files/0026-llvm-set-memrchr-unavailable.patch b/lang/llvm-15/files/0026-llvm-set-memrchr-unavailable.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4a929ef680e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-15/files/0026-llvm-set-memrchr-unavailable.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -203,6 +203,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     TLI.setAvailable(LibFunc_getchar_unlocked);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     TLI.setAvailable(LibFunc_putc_unlocked);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     TLI.setAvailable(LibFunc_putchar_unlocked);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    TLI.setUnavailable(LibFunc_memrchr);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     if (T.isMacOSXVersionLT(10, 5)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       TLI.setUnavailable(LibFunc_memset_pattern4);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-16/Portfile b/lang/llvm-16/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a34bc10a7d3..f0c7d7ec11c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-16/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-16/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +25,7 @@ set clang_exe_version   ${llvm_version}
</span> version                 ${llvm_version}.0.6
 
 name                    llvm-${llvm_version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                1
</span> subport                 mlir-${llvm_version}  { revision [ expr ${revision} + 0 ] }
 subport                 clang-${llvm_version} { revision [ expr ${revision} + 1 ] }
 subport                 lldb-${llvm_version}  { revision [ expr ${revision} + 1 ] }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -140,6 +140,7 @@ patchfiles-append \
</span>     0015-Fixup-libstdc-header-search-paths-for-older-versions.patch \
     0019-10.6-and-less-use-emulated-TLS-before-10.7.patch \
     0025-lldb-add-defines-needed-for-older-SDKs.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    0026-llvm-set-memrchr-unavailable.patch \
</span>     0999-i386-fix.diff
 
 if {${os.platform} eq "darwin" && ${os.major} < 14} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-16/files/0026-llvm-set-memrchr-unavailable.patch b/lang/llvm-16/files/0026-llvm-set-memrchr-unavailable.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4a929ef680e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-16/files/0026-llvm-set-memrchr-unavailable.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -203,6 +203,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     TLI.setAvailable(LibFunc_getchar_unlocked);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     TLI.setAvailable(LibFunc_putc_unlocked);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     TLI.setAvailable(LibFunc_putchar_unlocked);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    TLI.setUnavailable(LibFunc_memrchr);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     if (T.isMacOSXVersionLT(10, 5)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       TLI.setUnavailable(LibFunc_memset_pattern4);
</span></pre><pre style='margin:0'>

</pre>