aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-03-30 12:32:12 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-03-30 12:32:12 +0000
commit12486e033e1e90f999a8d88fa5756828c22db662 (patch)
tree507d86af84db912f50d0ae1f7a5aaceda7a5dfbb /gcc
parent0b99eef6f6069553557497ccf46c82be21947871 (diff)
downloadgcc-12486e033e1e90f999a8d88fa5756828c22db662.zip
gcc-12486e033e1e90f999a8d88fa5756828c22db662.tar.gz
gcc-12486e033e1e90f999a8d88fa5756828c22db662.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cfglayout.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e1878db..0229f63 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index 4646636..548e21f 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;