Skip to content

Commit 9ec229d

Browse files
authored
[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.
1 parent 9c28432 commit 9ec229d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGen/PowerPC/ppc-xmmintrin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// RUN: %clang -S -emit-llvm -target powerpc64-ibm-aix -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
2525
// RUN: -ffp-contract=off -fno-discard-value-names -mllvm -disable-llvm-optzns -o - | llvm-cxxfilt -n | FileCheck %s --check-prefixes=CHECK,CHECK-BE
26-
// RUN: %clang -x c++ -fsyntax-only -target powerpc64-ibm-aix -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
26+
// RUN: %clang -x c++ -fsyntax-only -target powerpc64-ibm-aix -mcpu=pwr8 -ffreestanding -nostdlibinc -DNO_WARN_X86_INTRINSICS %s \
2727
// RUN: -fno-discard-value-names -mllvm -disable-llvm-optzns
2828
// RUN: %clang -S -emit-llvm -target powerpc64-ibm-aix -mcpu=pwr10 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
2929
// RUN: -ffp-contract=off -fno-discard-value-names -mllvm -disable-llvm-optzns -o - | llvm-cxxfilt -n | FileCheck %s --check-prefixes=CHECK,CHECK-P10-BE

0 commit comments

Comments
 (0)