Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Feb 28, 2025

Backport ddaa5b3

Requested by: @uweigand

@llvmbot
Copy link
Member Author

llvmbot commented Feb 28, 2025

@uweigand What do you think about merging this PR to the release branch?

@llvmbot llvmbot requested a review from uweigand February 28, 2025 18:52
@llvmbot llvmbot added clang Clang issues not falling into any other category backend:X86 clang:headers Headers provided by Clang, e.g. for intrinsics labels Feb 28, 2025
@llvmbot
Copy link
Member Author

llvmbot commented Feb 28, 2025

@llvm/pr-subscribers-backend-x86
@llvm/pr-subscribers-backend-systemz

@llvm/pr-subscribers-clang

Author: None (llvmbot)

Changes

Backport ddaa5b3

Requested by: @uweigand


Full diff: https://github.com/llvm/llvm-project/pull/129286.diff

1 Files Affected:

  • (modified) clang/lib/Headers/vecintrin.h (+5)
diff --git a/clang/lib/Headers/vecintrin.h b/clang/lib/Headers/vecintrin.h
index a14c39f9f7313..338ea51ce8863 100644
--- a/clang/lib/Headers/vecintrin.h
+++ b/clang/lib/Headers/vecintrin.h
@@ -7,6 +7,9 @@
  *===-----------------------------------------------------------------------===
  */
 
+#ifndef _VECINTRIN_H
+#define _VECINTRIN_H
+
 #if defined(__s390x__) && defined(__VEC__)
 
 #define __ATTRS_ai __attribute__((__always_inline__))
@@ -12861,3 +12864,5 @@ vec_search_string_until_zero_cc(__vector unsigned int __a,
 #error "Use -fzvector to enable vector extensions"
 
 #endif
+
+#endif /* _VECINTRIN_H */

@llvmbot
Copy link
Member Author

llvmbot commented Feb 28, 2025

@llvm/pr-subscribers-backend-x86

Author: None (llvmbot)

Changes

Backport ddaa5b3

Requested by: @uweigand


Full diff: https://github.com/llvm/llvm-project/pull/129286.diff

1 Files Affected:

  • (modified) clang/lib/Headers/vecintrin.h (+5)
diff --git a/clang/lib/Headers/vecintrin.h b/clang/lib/Headers/vecintrin.h
index a14c39f9f7313..338ea51ce8863 100644
--- a/clang/lib/Headers/vecintrin.h
+++ b/clang/lib/Headers/vecintrin.h
@@ -7,6 +7,9 @@
  *===-----------------------------------------------------------------------===
  */
 
+#ifndef _VECINTRIN_H
+#define _VECINTRIN_H
+
 #if defined(__s390x__) && defined(__VEC__)
 
 #define __ATTRS_ai __attribute__((__always_inline__))
@@ -12861,3 +12864,5 @@ vec_search_string_until_zero_cc(__vector unsigned int __a,
 #error "Use -fzvector to enable vector extensions"
 
 #endif
+
+#endif /* _VECINTRIN_H */

@github-project-automation github-project-automation bot moved this from Needs Triage to Needs Merge in LLVM Release Status Feb 28, 2025
@tstellar
Copy link
Collaborator

tstellar commented Mar 1, 2025

Does this need to be in 20.1.0 or could it wait until 20.1.1 ?

@uweigand
Copy link
Member

uweigand commented Mar 3, 2025

Does this need to be in 20.1.0 or could it wait until 20.1.1 ?

I don't think this is particularly urgent.

Add header guard macros to clang/lib/Headers/vecintrin.h. Found while
compiling the latest numpy with clang 19 on s390x which ends up
including vecintrin.h twice. The gcc version of this file has header
guards so numpy compiles fine with gcc.

Signed-off-by: Jonathan Albrecht <[email protected]>
(cherry picked from commit ddaa5b3)
@tstellar tstellar merged commit 0f5e7e8 into llvm:release/20.x Mar 11, 2025
7 of 10 checks passed
@github-project-automation github-project-automation bot moved this from Needs Merge to Done in LLVM Release Status Mar 11, 2025
@github-actions
Copy link

@uweigand (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:SystemZ backend:X86 clang:headers Headers provided by Clang, e.g. for intrinsics clang Clang issues not falling into any other category

Projects

Development

Successfully merging this pull request may close these issues.

4 participants