aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2006-05-04 14:42:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2006-05-04 12:42:55 +0000
commit69fb12844d92f4a7a3eb821cd2742fc4a4bcc5ee (patch)
tree7950d28102ac6fddaafee9a11e7b8686bdc77484 /gcc
parent42da70b76e5d7818e9c44c171b354b0ce3226dd0 (diff)
downloadgcc-69fb12844d92f4a7a3eb821cd2742fc4a4bcc5ee.zip
gcc-69fb12844d92f4a7a3eb821cd2742fc4a4bcc5ee.tar.gz
gcc-69fb12844d92f4a7a3eb821cd2742fc4a4bcc5ee.tar.bz2
re PR middle-end/25962 (Pointer (null) check after the use in cgraph.c)
PR middle-end/25962 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing. From-SVN: r113522
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b74f0cb..5f29c01 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-04 Jan Hubicka <jh@suse.cz>
+
+ PR middle-end/25962
+ * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
+
2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/predicates.md (const01_rtx): Tell generator programs
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 030f868..4a7f90e 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -731,9 +731,9 @@ verify_cgraph_node (struct cgraph_node *node)
main_clone = main_clone->next_clone)
if (main_clone == node)
break;
- if (!node)
+ if (!cgraph_node (node->decl))
{
- error ("node not found in DECL_ASSEMBLER_NAME hash");
+ error ("node not found in cgraph_hash");
error_found = true;
}