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]

[gcc-in-cxx] Patch committed: Remove extraneous difference


I committed this patch to gcc-in-cxx branch to remove an extraneous
difference from trunk.  This issue was fixed on trunk in a different
way.

Ian


2009-06-17  Ian Lance Taylor  <iant@google.com>

	Revert this patch:
	2009-02-03  Ian Lance Taylor  <iant@google.com>
	* gcov.c (read_count_file): Avoid goto.


Index: gcov.c
===================================================================
--- gcov.c	(revision 148567)
+++ gcov.c	(working copy)
@@ -1093,6 +1093,7 @@ read_count_file (void)
 	    ;
 	  else if (gcov_read_unsigned () != fn->checksum)
 	    {
+	    mismatch:;
 	      fnotice (stderr, "%s:profile mismatch for '%s'\n",
 		       da_file_name, fn->name);
 	      goto cleanup;
@@ -1101,11 +1102,7 @@ read_count_file (void)
       else if (tag == GCOV_TAG_FOR_COUNTER (GCOV_COUNTER_ARCS) && fn)
 	{
 	  if (length != GCOV_TAG_COUNTER_LENGTH (fn->num_counts))
-	    {
-	      fnotice (stderr, "%s:profile mismatch for '%s'\n",
-		       da_file_name, fn->name);
-	      goto cleanup;
-	    }
+	    goto mismatch;
 
 	  if (!fn->counts)
 	    fn->counts = XCNEWVEC (gcov_type, fn->num_counts);

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