summaryrefslogtreecommitdiff
path: root/gcc/genpreds.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-06-29 20:21:36 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-06-29 20:21:36 +0000
commitc8d560fa808c83063ffc3696ad829d1f30ff57f2 (patch)
tree1e7192d990f96bef79a8cdfc6b0db02d5669a244 /gcc/genpreds.c
parent32df442ab35bf83a2227c86822b0a7dc3b33505f (diff)
downloadgcc-c8d560fa808c83063ffc3696ad829d1f30ff57f2.tar.gz
genpreds.c (write_match_code_switch): Correctly use XSTR instead of XEXP to extract the operands of a MATCH_CODE rtx.
* genpreds.c (write_match_code_switch): Correctly use XSTR instead of XEXP to extract the operands of a MATCH_CODE rtx. From-SVN: r115076
Diffstat (limited to 'gcc/genpreds.c')
-rw-r--r--gcc/genpreds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genpreds.c b/gcc/genpreds.c
index a9a7f2cc7bc..655c4e65293 100644
--- a/gcc/genpreds.c
+++ b/gcc/genpreds.c
@@ -543,8 +543,8 @@ write_predicate_expr (rtx exp)
static void
write_match_code_switch (rtx exp)
{
- const char *codes = (const char *) XEXP (exp, 0);
- const char *path = (const char *) XEXP (exp, 1);
+ const char *codes = XSTR (exp, 0);
+ const char *path = XSTR (exp, 1);
const char *code;
fputs (" switch (GET_CODE (", stdout);