projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a86e23
)
* varpool.c (varpool_get_node): Fix lookup.
author
Jan Hubicka
<jh@suse.cz>
Sat, 29 May 2010 13:04:50 +0000
(15:04 +0200)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Sat, 29 May 2010 13:04:50 +0000
(13:04 +0000)
From-SVN: r160024
gcc/ChangeLog
patch
|
blob
|
history
gcc/varpool.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index f24e90048011ab0f0bb4e5e1074f23f9782f9155..a84ef2d44e750fe266bfff115324871f971f1261 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+2010-05-29 Jan Hubicka <jh@suse.cz>
+
+ * varpool.c (varpool_get_node): Fix lookup.
+
2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
* config/spu/spu-protos.h: Do not include rtl.h. Protect
diff --git
a/gcc/varpool.c
b/gcc/varpool.c
index 180e21e86ec7f554df02e998417e7eec5cc23de1..2e8e945396ab5e7076c237c9d43a5492a22ae430 100644
(file)
--- 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;
}