diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-10-22 06:10:08 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-10-22 07:03:59 -0700 |
commit | 6faad766e7515fe1b7e57d9d2857a9b661a98481 (patch) | |
tree | bd89ad84fc9f9bb5732baaf4fea6c35d69dbd4af /ld/testsuite/ld-bootstrap | |
parent | 1bd57575dcb693d7fbda49bee44e81c20d1be7bf (diff) | |
download | gdb-6faad766e7515fe1b7e57d9d2857a9b661a98481.zip gdb-6faad766e7515fe1b7e57d9d2857a9b661a98481.tar.gz gdb-6faad766e7515fe1b7e57d9d2857a9b661a98481.tar.bz2 |
ld: Skip bootstrap tests for -fprofile-generate=
Make plug_opt available to all linker tests. Skip bootstrap tests when
linker is compiled with -fprofile-generate=.
* testsuite/ld-plugin/lto.exp (plug_opt): Moved to ...
* testsuite/config/default.exp (plug_opt): Here. New.
* testsuite/ld-bootstrap/bootstrap.exp: Skip when linker is
compiled with -fprofile-generate=.
Diffstat (limited to 'ld/testsuite/ld-bootstrap')
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index 43928fb..2342d50 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -29,7 +29,13 @@ if ![isnative] { return } -# Determine if plugin support is present. +# Skip for -fprofile-generate=. +catch "exec $nm $plug_opt $OFILES" exec_output +send_log "foo: $exec_output" +if { [ string match "*__gcov_*" $exec_output ] } { + return +} + remote_exec host "$nm --help" "" "/dev/null" "plugin-support" set tmp [file_contents "plugin-support"] regexp ".*\(--plugin\).*\n" $tmp foo plugins |