[llvm] 103b289 - [llvm-profdata][test] Change -Wl, -no-pie to -no-pie after D127808
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 10:46:42 PDT 2022
Author: Fangrui Song
Date: 2022-06-15T10:46:37-07:00
New Revision: 103b28902fd66e841860706efcc0354e553cce58
URL: https://github.com/llvm/llvm-project/commit/103b28902fd66e841860706efcc0354e553cce58
DIFF: https://github.com/llvm/llvm-project/commit/103b28902fd66e841860706efcc0354e553cce58.diff
LOG: [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808
The driver option -no-pie is preferred: Clang selects different crt*.o files,
though the PIC one usually can replace the non-PIC one.
Added:
Modified:
llvm/test/tools/llvm-profdata/memprof-basic.test
llvm/test/tools/llvm-profdata/memprof-inline.test
llvm/test/tools/llvm-profdata/memprof-merge.test
llvm/test/tools/llvm-profdata/memprof-multi.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-profdata/memprof-basic.test b/llvm/test/tools/llvm-profdata/memprof-basic.test
index be04427ae6083..324c7952bf0d9 100644
--- a/llvm/test/tools/llvm-profdata/memprof-basic.test
+++ b/llvm/test/tools/llvm-profdata/memprof-basic.test
@@ -26,7 +26,7 @@ recorded.
```
clang -fuse-ld=lld -Wl,--no-rosegment -gmlt -fdebug-info-for-profiling \
-fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer \
- -fno-optimize-sibling-calls -m64 -Wl,-build-id -Wl,-no-pie \
+ -fno-optimize-sibling-calls -m64 -Wl,-build-id -no-pie \
source.c -o basic.memprofexe
env MEMPROF_OPTIONS=log_path=stdout ./basic.memprofexe > basic.memprofraw
diff --git a/llvm/test/tools/llvm-profdata/memprof-inline.test b/llvm/test/tools/llvm-profdata/memprof-inline.test
index aaa7907d57f63..bba6b1ec53064 100644
--- a/llvm/test/tools/llvm-profdata/memprof-inline.test
+++ b/llvm/test/tools/llvm-profdata/memprof-inline.test
@@ -30,7 +30,7 @@ Compile and run with the following commands:
```
bin/clang -fuse-ld=lld -Wl,--no-rosegment -gmlt -fdebug-info-for-profiling \
-fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer \
- -fno-optimize-sibling-calls -m64 -Wl,-build-id -Wl,-no-pie \
+ -fno-optimize-sibling-calls -m64 -Wl,-build-id -no-pie \
inline.c -o inline.memprofexe
env MEMPROF_OPTIONS=log_path=stdout ./inline.memprofexe > inline.memprofraw
diff --git a/llvm/test/tools/llvm-profdata/memprof-merge.test b/llvm/test/tools/llvm-profdata/memprof-merge.test
index e9e836abb8e9c..46de2adc9941e 100644
--- a/llvm/test/tools/llvm-profdata/memprof-merge.test
+++ b/llvm/test/tools/llvm-profdata/memprof-merge.test
@@ -28,7 +28,7 @@ mv *.profraw basic.profraw
# Collect memprof profile.
clang -fuse-ld=lld -Wl,--no-rosegment -gmlt -fdebug-info-for-profiling \
-fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer \
- -fno-optimize-sibling-calls -m64 -Wl,-build-id -Wl,-no-pie \
+ -fno-optimize-sibling-calls -m64 -Wl,-build-id -no-pie \
source.c -o basic.memprofexe
env MEMPROF_OPTIONS=log_path=stdout ./basic.memprofexe > basic.memprofraw
diff --git a/llvm/test/tools/llvm-profdata/memprof-multi.test b/llvm/test/tools/llvm-profdata/memprof-multi.test
index 08f6a0daebd84..9140d4dd887dc 100644
--- a/llvm/test/tools/llvm-profdata/memprof-multi.test
+++ b/llvm/test/tools/llvm-profdata/memprof-multi.test
@@ -28,7 +28,7 @@ recorded.
```
clang -fuse-ld=lld -Wl,--no-rosegment -gmlt -fdebug-info-for-profiling \
-fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer \
- -fno-optimize-sibling-calls -m64 -Wl,-build-id -Wl,-no-pie \
+ -fno-optimize-sibling-calls -m64 -Wl,-build-id -no-pie \
source.c -o multi.memprofexe
env MEMPROF_OPTIONS=log_path=stdout ./multi.memprofexe > multi.memprofraw
More information about the llvm-commits
mailing list