From: hubicka Date: Sat, 29 May 2010 13:04:50 +0000 (+0000) Subject: * varpool.c (varpool_get_node): Fix lookup. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f541dff246cd276edd2bc2b2503abca5ad6f58ee;p=thirdparty%2Fgcc.git * varpool.c (varpool_get_node): Fix lookup. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160024 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f24e90048011..a84ef2d44e75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-05-29 Jan Hubicka + + * varpool.c (varpool_get_node): Fix lookup. + 2010-05-29 Steven Bosscher * config/spu/spu-protos.h: Do not include rtl.h. Protect diff --git a/gcc/varpool.c b/gcc/varpool.c index 180e21e86ec7..2e8e945396ab 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -117,7 +117,9 @@ varpool_get_node (tree decl) return NULL; key.decl = decl; slot = (struct varpool_node **) - htab_find_slot (varpool_hash, &key, INSERT); + htab_find_slot (varpool_hash, &key, NO_INSERT); + if (!slot) + return NULL; return *slot; }