diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-08 06:11:25 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-08 06:11:25 +0000 |
commit | 100e94da433200e4e7f0e6861f4e37d2c64a6fff (patch) | |
tree | da9f435f18289a00c1588b8b3d1e1f376ff54d46 /gcc/rtl.c | |
parent | 32d99b312b8372b684a6449b28939b58d8334b2a (diff) | |
download | gcc-100e94da433200e4e7f0e6861f4e37d2c64a6fff.tar.gz |
* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
strings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r-- | gcc/rtl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c index 3e73e4bf835..4d97bbd14ab 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; |