* rtlanal.c (find_reg_note): Assert insn is not null.
authorBen Elliston <bje@gcc.gnu.org>
Wed, 11 Jan 2006 21:47:31 +0000 (08:47 +1100)
committerBen Elliston <bje@gcc.gnu.org>
Wed, 11 Jan 2006 21:47:31 +0000 (08:47 +1100)
From-SVN: r109605

gcc/ChangeLog
gcc/rtlanal.c

index ab3cfb81f96b54f8c81318e6dc6441cb19be5b3a..babb3ba91995bfda39da6a672874cfc177fcef85 100644 (file)
@@ -1,6 +1,11 @@
+2006-01-11  Ben Elliston  <bje@au.ibm.com>
+
+       * rtlanal.c (find_reg_note): Assert insn is not null.
+
 2005-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
 
-   * df-scan.c (df_hard_reg_init) Moved declaration of i outside ifdef.
+       * df-scan.c (df_hard_reg_init): Move declaration of i outside
+       ifdef.
 
 2006-01-11  Jeff Law  <law@redhat.com>
 
index 1248d470e33bb87f710d7a8ed1d126ab114a9564..490c221c9b876aec4d92b537601ad3cd531d87e6 100644 (file)
@@ -1,6 +1,7 @@
-/* Analyze RTL for C-Compiler
+/* Analyze RTL for GNU compiler.
    Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
+   Foundation, Inc.
 
 This file is part of GCC.
 
@@ -1656,6 +1657,8 @@ find_reg_note (rtx insn, enum reg_note kind, rtx datum)
 {
   rtx link;
 
+  gcc_assert (insn);
+
   /* Ignore anything that is not an INSN, JUMP_INSN or CALL_INSN.  */
   if (! INSN_P (insn))
     return 0;