From 12486e033e1e90f999a8d88fa5756828c22db662 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 30 Mar 2011 12:32:12 +0000 Subject: [PATCH] cfglayout.c (insn_locators_alloc): Initialize curr_location and last_location to UNKNOWN_LOCATION. * cfglayout.c (insn_locators_alloc): Initialize curr_location and last_location to UNKNOWN_LOCATION. From-SVN: r171722 --- gcc/ChangeLog | 5 +++++ gcc/cfglayout.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1878db88e0..0229f63f8f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-30 Eric Botcazou + + * cfglayout.c (insn_locators_alloc): Initialize curr_location and + last_location to UNKNOWN_LOCATION. + 2011-03-30 H.J. Lu PR target/48349 diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 464663642c7..548e21f7f4f 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -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; -- 2.30.2