[PATCH] gcov endianness

Nathan Sidwell nathan@codesourcery.com
Wed Jul 9 12:13:00 GMT 2003


Hi,
This patch removes a bunch of endianness conversions from the gcov machinery.
As the gcov files are an internal interface for a particular compiler
version and target machine, it is simpler to use the endianness of the
cpu writing the file, and put some detection in the host-based reader
to deal with hosts & targets of different endianness. Unfortunately I'd
picked a magic number that was palindromic, so I changed that -- we'd
never released anything with the old magic number anyway.

booted & tested on i686-pc-linux-gnu.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcov-21a.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030709/24b1f677/attachment.ksh>


More information about the Gcc-patches mailing list