cfglayout.c (insn_locators_alloc): Initialize curr_location and last_location to...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 30 Mar 2011 12:32:12 +0000 (12:32 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 30 Mar 2011 12:32:12 +0000 (12:32 +0000)
* cfglayout.c (insn_locators_alloc): Initialize curr_location and
last_location to UNKNOWN_LOCATION.

From-SVN: r171722

gcc/ChangeLog
gcc/cfglayout.c

index e1878db88e0e69d75ee8165daff7dc712072c02a..0229f63f8f6d9317e2ff1c2d4b0d11ba52865a53 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * cfglayout.c (insn_locators_alloc): Initialize curr_location and
+       last_location to UNKNOWN_LOCATION.
+
 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/48349
index 464663642c716f2efc6482797e48254732fa1922..548e21f7f4f81e341d9c8c280b4cf9c0da3ac446 100644 (file)
@@ -253,8 +253,8 @@ insn_locators_alloc (void)
   locations_locators_locs = VEC_alloc (int, heap, 32);
   locations_locators_vals = VEC_alloc (location_t, heap, 32);
 
-  last_location = -1;
-  curr_location = -1;
+  curr_location = UNKNOWN_LOCATION;
+  last_location = UNKNOWN_LOCATION;
   curr_block = NULL;
   last_block = NULL;
   curr_rtl_loc = 0;