aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r--gcc/rtl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index 3e73e4b..4d97bbd 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -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;