From ad43b47a25f5c4cf66b8604e37e696b7f94a4e0e Mon Sep 17 00:00:00 2001 From: Guozhi Wei Date: Mon, 24 Feb 2014 18:35:54 +0000 Subject: [PATCH] sparseset.h (sparseset_pop): Fix the wrong index. * sparseset.h (sparseset_pop): Fix the wrong index. From-SVN: r208091 --- gcc/ChangeLog | 4 ++++ gcc/sparseset.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6371f2b..9c1faac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-02-24 Guozhi Wei + + * sparseset.h (sparseset_pop): Fix the wrong index. + 2014-02-24 Walter Lee * config.gcc (tilepro-*-*): Change to tilepro*-*-*. diff --git a/gcc/sparseset.h b/gcc/sparseset.h index a6854e5..8c7f3ef 100644 --- a/gcc/sparseset.h +++ b/gcc/sparseset.h @@ -177,7 +177,7 @@ sparseset_pop (sparseset s) gcc_checking_assert (mem != 0); s->members = mem - 1; - return s->dense[mem]; + return s->dense[s->members]; } static inline void -- 2.7.4