aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-05-31 16:24:08 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-05-31 16:24:08 +0000
commit70efc82d54f11140c52c8c22ff542706b6e0e45b (patch)
treea71934085d596b28cbf080ba93cfa381d67b3755
parent6ba5d85618299fb84acfa86c7d18af5bcdd0375b (diff)
downloadgcc-70efc82d54f11140c52c8c22ff542706b6e0e45b.zip
gcc-70efc82d54f11140c52c8c22ff542706b6e0e45b.tar.gz
gcc-70efc82d54f11140c52c8c22ff542706b6e0e45b.tar.bz2
gengtype-state.c (read_state_params_structs): Initialize previous.
* gengtype-state.c (read_state_params_structs): Initialize previous. From-SVN: r174491
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gengtype-state.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f4346fb..d7394ab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-31 Alexandre Oliva <aoliva@redhat.com>
+
+ * gengtype-state.c (read_state_params_structs): Initialize
+ previous.
+
2011-05-31 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
diff --git a/gcc/gengtype-state.c b/gcc/gengtype-state.c
index e9aa5d2..a885d28 100644
--- a/gcc/gengtype-state.c
+++ b/gcc/gengtype-state.c
@@ -2137,7 +2137,7 @@ read_state_param_structs (type_p *param_structs)
int nbparamstructs = 0;
int countparamstructs = 0;
type_p head = NULL;
- type_p previous;
+ type_p previous = NULL;
type_p tmp;
struct state_token_st *t0 = peek_state_token (0);
struct state_token_st *t1 = peek_state_token (1);