This is the mail archive of the gcc-cvs@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]

r201714 - /branches/google/gcc-4_8/gcc/dwarf2out.c


Author: ccoutant
Date: Tue Aug 13 23:55:08 2013
New Revision: 201714

URL: http://gcc.gnu.org/viewcvs?rev=201714&root=gcc&view=rev
Log:
This patch is for the google/gcc-4_7 and google/gcc-4_8 branches.

It fixes a problem with -fdebug-types-section and with
-gsplit-dwarf where the hash computation for the type signature
and for the DW_AT_dwo_id attribute may produce results that differ
from run to run. For dw_val_class_vec values (e.g., the const value
of a small struct), both hash computations use the value of a pointer
instead of the actual data.

Backported from trunk.

Google ref b/10289060

-cary


2013-08-13  Cary Coutant  <ccoutant@google.com>

gcc/
	* dwarf2out.c (CHECKSUM_BLOCK): New macro.
	(attr_checksum): Hash vector contents instead of pointer.
	(attr_checksum_ordered): Likewise.

Modified:
    branches/google/gcc-4_8/gcc/dwarf2out.c


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