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]

[GOOGLE] Updates highest_location when updating next_discriminator_location


The previous checkin will break build for most application:

http://gcc.gnu.org/viewcvs/gcc/branches/google/gcc-4_9/gcc/?view=log

This patch fixes the regression by updating highest_location.

Testing on-going,

OK for google-4_9 branch?

Thanks,
Dehao

Index: gcc/input.c
===================================================================
--- gcc/input.c (revision 210338)
+++ gcc/input.c (working copy)
@@ -910,6 +910,8 @@ location_with_discriminator (location_t locus, int
       : next_discriminator_location);

   next_discriminator_location++;
+  if (next_discriminator_location > line_table->highest_location)
+    line_table->highest_location = next_discriminator_location;
   return ret;
 }


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