Patchwork [google,main] change the gcda tag for module info (issue6430053)

login
register
mail settings
Submitter Rong Xu
Date July 19, 2012, 10:31 p.m.
Message ID <20120719223130.F2486C1713@rong.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/172095/
State New
Headers show

Comments

Rong Xu - July 19, 2012, 10:31 p.m.
Hi,

This is for google branches only.

Change the module_info tag to an odd number to avoid the warning during dump.

-Rong

2012-07-19  Rong Xu  <xur@google.com>

	* gcc/gcov-io.h (GCOV_TAG_MODULE_INFO): tag needs to be
        an odd number in each active level.


--
This patch is available for review at http://codereview.appspot.com/6430053

Patch

Index: gcc/gcov-io.h
===================================================================
--- gcc/gcov-io.h	(revision 189690)
+++ gcc/gcov-io.h	(working copy)
@@ -441,7 +441,6 @@  typedef HOST_WIDEST_INT gcov_type;
 #define GCOV_TAG_PROGRAM_SUMMARY ((gcov_unsigned_t)0xa3000000)
 #define GCOV_TAG_SUMMARY_LENGTH  \
 	(1 + GCOV_COUNTERS_SUMMABLE * (3 + 3 * 2))
-#define GCOV_TAG_MODULE_INFO ((gcov_unsigned_t)0xa4000000)
 #define GCOV_TAG_PMU_LOAD_LATENCY_INFO ((gcov_unsigned_t)0xa5000000)
 #define GCOV_TAG_PMU_LOAD_LATENCY_LENGTH(filename)  \
   (gcov_string_length (filename) + 12 + 2)
@@ -449,6 +448,7 @@  typedef HOST_WIDEST_INT gcov_type;
 #define GCOV_TAG_PMU_BRANCH_MISPREDICT_LENGTH(filename)  \
   (gcov_string_length (filename) + 5 + 2)
 #define GCOV_TAG_PMU_TOOL_HEADER ((gcov_unsigned_t)0xa9000000)
+#define GCOV_TAG_MODULE_INFO ((gcov_unsigned_t)0xab000000)
 
 /* Counters that are collected.  */
 #define GCOV_COUNTER_ARCS 	0  /* Arc transitions.  */