diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-12-08 06:11:25 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2001-12-08 06:11:25 +0000 |
commit | be0063829a45521d1301ea74a087ee287d18c441 (patch) | |
tree | da9f435f18289a00c1588b8b3d1e1f376ff54d46 /gcc/rtl.c | |
parent | e9d7407e3ac81500f38c70f04ad5aaa928765cd0 (diff) | |
download | gcc-be0063829a45521d1301ea74a087ee287d18c441.zip gcc-be0063829a45521d1301ea74a087ee287d18c441.tar.gz gcc-be0063829a45521d1301ea74a087ee287d18c441.tar.bz2 |
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
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r-- | gcc/rtl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |