* regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
is NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125043
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-05-24 Ian Lance Taylor <iant@google.com>
+
+ PR rtl-optimization/32069
+ * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
+ is NULL.
+
2007-05-24 Ollie Wild <aaw@google.com>
* doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
int class;
struct costs *p = &costs[i];
+ if (regno_reg_rtx[i] == NULL)
+ continue;
+
/* In non-optimizing compilation REG_N_REFS is not initialized
yet. */
if (optimize && !REG_N_REFS (i) && !REG_N_SETS (i))
--- /dev/null
+/* { dg-do-compile } */
+/* { dg-options "-O0 -fsplit-wide-types" } */
+
+long long int segfault (long long int a, long long int b)
+{
+ return a ^ b;
+}