Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// General tests that ld invocations on AIX targets are sane. Note that we use
|
|
|
|
// sysroot to make these tests independent of the host system.
|
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32 %s
|
|
|
|
// CHECK-LD32-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32: "-b32"
|
|
|
|
// CHECK-LD32: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64 %s
|
|
|
|
// CHECK-LD64-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD64-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64: "-b64"
|
|
|
|
// CHECK-LD64: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD64: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. Enable POSIX thread support.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -pthread \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-PTHREAD %s
|
|
|
|
// CHECK-LD32-PTHREAD-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PTHREAD: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-PTHREAD: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-PTHREAD-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "-b32"
|
|
|
|
// CHECK-LD32-PTHREAD: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-PTHREAD: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-PTHREAD-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-PTHREAD-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-PTHREAD-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-PTHREAD-NOT: "--no-as-needed"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "-lpthreads"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-PTHREAD-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PTHREAD: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
2020-05-27 03:39:21 +08:00
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. POSIX thread alias.
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -pthreads \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-PTHREAD %s
|
|
|
|
// CHECK-LD64-PTHREAD-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-PTHREAD: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-PTHREAD: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD64-PTHREAD-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "-b64"
|
|
|
|
// CHECK-LD64-PTHREAD: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-PTHREAD: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-PTHREAD-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-PTHREAD-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-PTHREAD-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-PTHREAD-NOT: "--no-as-needed"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "-lpthreads"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-PTHREAD-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-PTHREAD: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. Enable profiling.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -p \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-PROF %s
|
|
|
|
// CHECK-LD32-PROF-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PROF: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-PROF: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PROF: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-PROF: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-PROF-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PROF: "-b32"
|
|
|
|
// CHECK-LD32-PROF: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-PROF: "[[SYSROOT]]/usr/lib{{/|\\\\}}mcrt0.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32-PROF: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-PROF-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-PROF-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-PROF: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-PROF-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-PROF: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-PROF-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-PROF-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-PROF: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. Enable g-profiling.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -pg \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-GPROF %s
|
|
|
|
// CHECK-LD64-GPROF-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-GPROF: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-GPROF: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-GPROF: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-GPROF: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD64-GPROF-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-GPROF: "-b64"
|
|
|
|
// CHECK-LD64-GPROF: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-GPROF: "[[SYSROOT]]/usr/lib{{/|\\\\}}gcrt0_64.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD64-GPROF: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-GPROF-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-GPROF-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-GPROF: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-GPROF-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-GPROF: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-GPROF-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-GPROF-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-GPROF: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. Static linking.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -static \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-STATIC %s
|
|
|
|
// CHECK-LD32-STATIC-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-STATIC: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-STATIC: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-STATIC: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-STATIC: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-STATIC: "-bnso"
|
|
|
|
// CHECK-LD32-STATIC: "-b32"
|
|
|
|
// CHECK-LD32-STATIC: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-STATIC: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32-STATIC: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-STATIC-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-STATIC-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-STATIC: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-STATIC-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-STATIC-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-STATIC-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-STATIC-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-STATIC: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. Library search path.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -L%S/Inputs/aix_ppc_tree/powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-LIBP %s
|
|
|
|
// CHECK-LD32-LIBP-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-LIBP: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-LIBP: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-LIBP: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-LIBP: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-LIBP-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-LIBP: "-b32"
|
|
|
|
// CHECK-LD32-LIBP: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-LIBP: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32-LIBP: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-LIBP: "-L[[SYSROOT]]/powerpc-ibm-aix7.1.0.0"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-LIBP-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-LIBP-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-LIBP: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-LIBP-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-LIBP: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-LIBP-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-LIBP-NOT: "-lm"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-LIBP: "-lc"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. nostdlib.
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -nostdlib \
|
|
|
|
// RUN: -pthread \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-NO-STD-LIB %s
|
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-NO-STD-LIB: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB: "-b32"
|
|
|
|
// CHECK-LD32-NO-STD-LIB: "-bpT:0x10000000" "-bpD:0x20000000"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "--no-as-needed"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-lpthreads"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-lm"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD32-NO-STD-LIB-NOT: "-lc"
|
|
|
|
|
2020-05-27 03:39:21 +08:00
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. nodefaultlibs.
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: -nodefaultlibs \
|
|
|
|
// RUN: -pthread \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-NO-DEFAULT-LIBS %s
|
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: warning:
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "{{.*}}ld{{(.exe)?}}"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-bnso"
|
2020-05-27 03:39:21 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "-b64"
|
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "--no-as-needed"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-lpthreads"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-lm"
|
Add AIX toolchain and basic linker functionality
Summary:
This patch adds AIX toolchain infrastructure into driver, and enables AIX
system linker invocation with some basic functionality support
Reviewers: daltenty, hubert.reinterpretcast, jasonliu, Xiangling_L
Reviewed By: jasonliu
Subscribers: Xiangling_L, jasonliu, ormris, wuzish, nemanjai, mgorny, kbarton, jfb, jsji, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68340
2019-10-25 02:47:32 +08:00
|
|
|
// CHECK-LD64-NO-DEFAULT-LIBS-NOT: "-lc"
|
2020-05-26 01:43:22 +08:00
|
|
|
|
2020-11-16 22:42:39 +08:00
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. 'bcdtors' and argument order.
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s 2>&1 -### \
|
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
|
|
// RUN: -Wl,-bnocdtors \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-11-16 22:42:39 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-ARG-ORDER %s
|
|
|
|
// CHECK-LD32-ARG-ORDER: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "-bnso"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-b32"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-bcdtors:all:0:s"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-bnocdtors"
|
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "-bcdtors:all:0:s"
|
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "-lc++abi"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32-ARG-ORDER: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-ARG-ORDER: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "--no-as-needed"
|
2020-11-16 22:42:39 +08:00
|
|
|
// CHECK-LD32-ARG-ORDER-NOT: "-lm"
|
|
|
|
// CHECK-LD32-ARG-ORDER: "-lc"
|
|
|
|
|
2020-05-26 01:43:22 +08:00
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. 'bcdtors' and argument order.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -Wl,-bnocdtors \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-05-27 03:39:21 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-CXX-ARG-ORDER %s
|
2020-05-26 01:43:22 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-05-26 01:43:22 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER-NOT: "-bnso"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-b32"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-05-26 01:43:22 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-bcdtors:all:0:s"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-bnocdtors"
|
|
|
|
// CHECK-LD32-CXX-ARG-ORDER-NOT: "-bcdtors:all:0:s"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-ORDER: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. lc++ and lc order.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-CXX-ARG-LCXX %s
|
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-b32"
|
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-CXX-ARG-LCXX: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. lc++ and lc order.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-CXX-ARG-LCXX %s
|
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-b64"
|
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-CXX-ARG-LCXX: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. -nodefaultlibs.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -nodefaultlibs \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-NODEFLIB-LCXX %s
|
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "-b32"
|
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NODEFLIB-LCXX-NOT: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. -nodefaultlibs.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -nodefaultlibs \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-NODEFLIB-LCXX %s
|
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "-b64"
|
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NODEFLIB-LCXX-NOT: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. -nostdlib.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -nostdlib \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-NOSTDLIB-LCXX %s
|
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX: "-b32"
|
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOSTDLIB-LCXX-NOT: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. -nostdlib.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -nostdlib \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-NOSTDLIB-LCXX %s
|
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX: "-b64"
|
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOSTDLIB-LCXX-NOT: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. -nostdlib++.
|
2020-08-04 23:51:28 +08:00
|
|
|
// Note: crti is still linked for initialization/finalization functionality.
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -nostdlib++ \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-NOSTDLIBXX-LCXX %s
|
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-b32"
|
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX-NOT: "--no-as-needed"
|
2020-10-01 04:58:48 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD32-NOSTDLIBXX-LCXX: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. -nostdlib++.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: -nostdlib++ \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-10 22:27:04 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-NOSTDLIBXX-LCXX %s
|
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-b64"
|
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX-NOT: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX-NOT: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-lm"
|
2020-08-10 22:27:04 +08:00
|
|
|
// CHECK-LD64-NOSTDLIBXX-LCXX: "-lc"
|
|
|
|
|
2020-08-29 02:38:59 +08:00
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 32-bit. -nostartfiles.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: -nostartfiles \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-NOSTARTFILES-LCXX %s
|
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-b32"
|
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-lm"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD32-NOSTARTFILES-LCXX: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. -nostartfiles.
|
|
|
|
// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: -nostartfiles \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-NOSTARTFILES-LCXX %s
|
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-b64"
|
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-lm"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD64-NOSTARTFILES-LCXX: "-lc"
|
|
|
|
|
2020-08-10 22:27:04 +08:00
|
|
|
// Check powerpc-ibm-aix7.1.0.0, 32-bit. -stdlib=libstdc++ invokes fatal error.
|
|
|
|
// RUN: not --crash %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: -stdlib=libstdc++ \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-LIBSTDCXX %s
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. -stdlib=libstdc++ invokes fatal error.
|
|
|
|
// RUN: not --crash %clangxx -no-canonical-prefixes %s 2>&1 -### \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: -stdlib=libstdc++ \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-LIBSTDCXX %s
|
|
|
|
// CHECK-LD-LIBSTDCXX: LLVM ERROR: linking libstdc++ unimplemented on AIX
|
2020-08-29 02:38:59 +08:00
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 32-bit. -shared.
|
2020-08-04 23:51:28 +08:00
|
|
|
// RUN: %clangxx -x c++ -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: -shared \
|
|
|
|
// RUN: -target powerpc-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD32-SHARED %s
|
|
|
|
// CHECK-LD32-SHARED: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-SHARED: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD32-SHARED: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD32-SHARED: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD32-SHARED: "-bM:SRE"
|
|
|
|
// CHECK-LD32-SHARED: "-bnoentry"
|
|
|
|
// CHECK-LD32-SHARED: "-b32"
|
|
|
|
// CHECK-LD32-SHARED: "-bpT:0x10000000" "-bpD:0x20000000"
|
|
|
|
// CHECK-LD32-SHARED-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD32-SHARED-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti.o"
|
|
|
|
// CHECK-LD32-SHARED: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-SHARED: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD32-SHARED: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-SHARED-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD32-SHARED: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD32-SHARED-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD32-SHARED: "-lm"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD32-SHARED: "-lc"
|
|
|
|
|
|
|
|
// Check powerpc64-ibm-aix7.1.0.0, 64-bit. -shared.
|
2020-08-04 23:51:28 +08:00
|
|
|
// RUN: %clangxx -x c++ -no-canonical-prefixes %s 2>&1 -### \
|
2020-09-04 06:34:57 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: -shared \
|
|
|
|
// RUN: -target powerpc64-ibm-aix7.1.0.0 \
|
|
|
|
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
|
2021-06-25 15:32:01 +08:00
|
|
|
// RUN: -unwindlib=libunwind \
|
2020-08-29 02:38:59 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD64-SHARED %s
|
|
|
|
// CHECK-LD64-SHARED: {{.*}}clang{{.*}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-SHARED: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD64-SHARED: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-LD64-SHARED: "{{.*}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-LD64-SHARED: "-bM:SRE"
|
|
|
|
// CHECK-LD64-SHARED: "-bnoentry"
|
|
|
|
// CHECK-LD64-SHARED: "-b64"
|
|
|
|
// CHECK-LD64-SHARED: "-bpT:0x100000000" "-bpD:0x110000000"
|
|
|
|
// CHECK-LD64-SHARED-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crt0_64.o"
|
2020-08-04 23:51:28 +08:00
|
|
|
// CHECK-LD64-SHARED-NOT: "[[SYSROOT]]/usr/lib{{/|\\\\}}crti_64.o"
|
|
|
|
// CHECK-LD64-SHARED: "-lc++"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-SHARED: "-lc++abi"
|
2020-09-04 06:34:57 +08:00
|
|
|
// CHECK-LD64-SHARED: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc64.a"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-SHARED-NOT: "--as-needed"
|
2021-05-27 23:47:20 +08:00
|
|
|
// CHECK-LD64-SHARED: "-lunwind"
|
2021-06-18 01:14:49 +08:00
|
|
|
// CHECK-LD64-SHARED-NOT: "--no-as-needed"
|
2020-09-29 23:30:28 +08:00
|
|
|
// CHECK-LD64-SHARED: "-lm"
|
2020-08-29 02:38:59 +08:00
|
|
|
// CHECK-LD64-SHARED: "-lc"
|