Patchwork [28/44] Use FOR_EACH_VEC_ELT.

login
register
mail settings
Submitter Sebastian Pop
Date Sept. 30, 2010, 6:01 p.m.
Message ID <1285869696-10915-29-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/66215/
State New
Headers show

Comments

Sebastian Pop - Sept. 30, 2010, 6:01 p.m.
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>

2010-09-09  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@164121 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog          |    6 +++++-
 gcc/ChangeLog.graphite |    4 ++++
 gcc/graphite-poly.h    |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 02fd3b0..23cba09 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,8 @@ 
-2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
+2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
+
+	* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
+
+2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
 
 	* graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
 
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 82a67a1..6a98c8c 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,7 @@ 
+2010-09-09  Sebastian Pop  <sebastian.pop@amd.com>
+
+	* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
+
 2010-09-02  Vladimir Kargov  <kargov@gmail.com>
 
 	* graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h
index 0e1aa1f..5ed1b04 100644
--- a/gcc/graphite-poly.h
+++ b/gcc/graphite-poly.h
@@ -843,7 +843,7 @@  lst_dewey_number (lst_p lst)
   if (!LST_LOOP_FATHER (lst))
     return 0;
 
-  for (i = 0; VEC_iterate (lst_p, LST_SEQ (LST_LOOP_FATHER (lst)), i, l); i++)
+  FOR_EACH_VEC_ELT (lst_p, LST_SEQ (LST_LOOP_FATHER (lst)), i, l)
     if (l == lst)
       return i;