This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [google/gcc-4_7, google/gcc-4_8] Fix non-deterministic output with -gsplit-dwarf


On Tue, Jul 2, 2013 at 1:37 PM, Cary Coutant <ccoutant@google.com> wrote:
>
> This patch is for the google/gcc-4_7 and google/gcc-4_8 branches.
>
> When using -gsplit-dwarf, we use die_checksum to calculate a hash
> over the compilation unit for the DW_AT_dwo_id attribute.  When
> hashing location expressions, the hash may include pointers that
> can vary from run to run of GCC.  This patch fixes loc_checksum
> to use the (already existing) hash_loc_operands function, which
> calculates a hash deterministically.
>
> OK for google branches?

This patch is OK for google branches, and probably ought to be applied
to trunk at some point.

Sterling


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]