Fixes for AutoFDO testing
authorEugene Rozenfeld <erozen@microsoft.com>
Tue, 3 Aug 2021 01:29:24 +0000 (18:29 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Tue, 3 Aug 2021 21:28:42 +0000 (14:28 -0700)
commit9265b378531391498ec1727f67a45da72a6c07e9
treecd3fc4e72ec041e9333bed71e9499511c69c49ef
parent0ed093c7c3f755bc1cd80e5186abeb2f5c50ee0c
Fixes for AutoFDO testing

* create_gcov tool doesn't currently support dwarf 5 so I made a change in profopt.exp
  to pass -gdwarf-4 when compiling the binary to profile.

* I updated the invocation of create_gcov in profopt.exp to pass -gcov_version=2.
  I recently made a change to create_gcov to support version 2:
  https://github.com/google/autofdo/pull/117 .

* I removed useless -o perf.data from the invocation of gcc-auto-profile in
  target-supports.exp.

These changes contribute to fixing PR gcov-profile/71672.

gcc/testsuite/ChangeLog:

* lib/profopt.exp: Pass gdwarf-4 when compiling test to profile; pass -gcov_version=2.
* lib/target-supports.exp: Remove unnecessary -o perf.data passed to gcc-auto-profile.
gcc/testsuite/lib/profopt.exp
gcc/testsuite/lib/target-supports.exp