summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-29 20:21:36 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-29 20:21:36 +0000
commitc062b0d1d538c272e5ce60e142f1038b6b307351 (patch)
tree1e7192d990f96bef79a8cdfc6b0db02d5669a244
parent223301cd39e762634e5e7734e1e45e95fc8a9bcd (diff)
downloadgcc-c062b0d1d538c272e5ce60e142f1038b6b307351.tar.gz
* genpreds.c (write_match_code_switch): Correctly use XSTR instead
of XEXP to extract the operands of a MATCH_CODE rtx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115076 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/genpreds.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4814be31e39..c27d6d23dab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-29 Roger Sayle <roger@eyesopen.com>
+
+ * genpreds.c (write_match_code_switch): Correctly use XSTR instead
+ of XEXP to extract the operands of a MATCH_CODE rtx.
+
2006-06-28 Andrew Pinski <pinskia@gmail.com>
* tree.c (tree_size): Do not waste tail padding in
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);