Commit be006382 by John David Anglin Committed by John David Anglin

rtl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.

	* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
	strings.

From-SVN: r47785
parent e9d7407e
2001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
strings.
2001-12-07 Richard Henderson <rth@redhat.com>
* doc/extend.texi: Fix typo last change.
......
......@@ -670,7 +670,9 @@ rtx_equal_p (x, y)
case 'S':
case 's':
if (strcmp (XSTR (x, i), XSTR (y, i)))
if ((XSTR (x, i) || XSTR (y, i))
&& (! XSTR (x, i) || ! XSTR (y, i)
|| strcmp (XSTR (x, i), XSTR (y, i))))
return 0;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment