This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[GOOGLE] Updates highest_location when updating next_discriminator_location
- From: Dehao Chen <dehao at google dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Cary Coutant <ccoutant at google dot com>, David Li <davidxl at google dot com>
- Date: Tue, 13 May 2014 09:28:12 -0700
- Subject: [GOOGLE] Updates highest_location when updating next_discriminator_location
- Authentication-results: sourceware.org; auth=none
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;
}