Author: Zibi Sarbinowski Date: 2024-10-01T15:24:27-04:00 New Revision: 9ec229dd3ede6368ee5fecf9b9731d8d21d8b1d2
URL: https://github.com/llvm/llvm-project/commit/9ec229dd3ede6368ee5fecf9b9731d8d21d8b1d2 DIFF: https://github.com/llvm/llvm-project/commit/9ec229dd3ede6368ee5fecf9b9731d8d21d8b1d2.diff LOG: [SystemZ][z/OS] fix ppc-xmmintrin.c on z/OS (#109676) This will fix the following failure seeing on z/OS: ``` In file included from clang/test/CodeGen/PowerPC/ppc-xmmintrin.c:31: In file included from build/lib/clang/20/include/ppc_wrappers/xmmintrin.h:44: In file included from build/lib/clang/20/include/altivec.h:48: In file included from build/bin/../include/c++/v1/stddef.h:27: In file included from build/bin/../include/c++/v1/__config:14: In file included from build/bin/../include/c++/v1/__configuration/abi.h:15: In file included from build/bin/../include/c++/v1/__configuration/platform.h:35: /usr/include/features.h:1:20: error: expected unqualified-id 1 | ??=if ??/ | ^ /usr/include/features.h:2140:20: error: expected unqualified-id 2140 | ??=endif /* __features_h */ | ^ ``` Adding `-nostdlibinc` will not use standard system include path and it will prevent above errors. Added: Modified: clang/test/CodeGen/PowerPC/ppc-xmmintrin.c Removed: ################################################################################ diff --git a/clang/test/CodeGen/PowerPC/ppc-xmmintrin.c b/clang/test/CodeGen/PowerPC/ppc-xmmintrin.c index 4a15fa9f76ceea..8681bb3f9b4f8c 100644 --- a/clang/test/CodeGen/PowerPC/ppc-xmmintrin.c +++ b/clang/test/CodeGen/PowerPC/ppc-xmmintrin.c @@ -23,7 +23,7 @@ // RUN: %clang -S -emit-llvm -target powerpc64-ibm-aix -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \ // RUN: -ffp-contract=off -fno-discard-value-names -mllvm -disable-llvm-optzns -o - | llvm-cxxfilt -n | FileCheck %s --check-prefixes=CHECK,CHECK-BE -// RUN: %clang -x c++ -fsyntax-only -target powerpc64-ibm-aix -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \ +// RUN: %clang -x c++ -fsyntax-only -target powerpc64-ibm-aix -mcpu=pwr8 -ffreestanding -nostdlibinc -DNO_WARN_X86_INTRINSICS %s \ // RUN: -fno-discard-value-names -mllvm -disable-llvm-optzns // RUN: %clang -S -emit-llvm -target powerpc64-ibm-aix -mcpu=pwr10 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \ // RUN: -ffp-contract=off -fno-discard-value-names -mllvm -disable-llvm-optzns -o - | llvm-cxxfilt -n | FileCheck %s --check-prefixes=CHECK,CHECK-P10-BE _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits