summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-flow-inline.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b1645a82b2a..c6fd5c7febc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-21 Diego Novillo <dnovillo@redhat.com>
+
+ * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
+ is NULL.
+
2004-05-21 Jakub Jelinek <jakub@redhat.com>
* config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index 3505b0c4f19..be997d08499 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -295,6 +295,9 @@ num_immediate_uses (dataflow_t df)
static inline tree
immediate_use (dataflow_t df, int num)
{
+ if (!df)
+ return NULL_TREE;
+
#ifdef ENABLE_CHECKING
if (num >= num_immediate_uses (df))
abort ();