[all-commits] [llvm/llvm-project] f98709: [gcov] Fix big-endian problems

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon May 11 22:39:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f98709a982b358a2df3ee6103c8b9a81cbc81d26
      https://github.com/llvm/llvm-project/commit/f98709a982b358a2df3ee6103c8b9a81cbc81d26
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-05-11 (Mon, 11 May 2020)

  Changed paths:
    M compiler-rt/lib/profile/GCDAProfiling.c

  Log Message:
  -----------
  [gcov] Fix big-endian problems

In a big-endian .gcda file, the first four bytes are "gcda" instead of "adcg".
All 32-bit values are in big-endian.

With this change, libclang_rt.profile can hopefully produce gcov
compatible output.




More information about the All-commits mailing list