]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
genpreds.c (write_match_code_switch): Correctly use XSTR instead of XEXP to extract...
authorRoger Sayle <roger@eyesopen.com>
Thu, 29 Jun 2006 20:21:36 +0000 (20:21 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 29 Jun 2006 20:21:36 +0000 (20:21 +0000)
* genpreds.c (write_match_code_switch): Correctly use XSTR instead
of XEXP to extract the operands of a MATCH_CODE rtx.

From-SVN: r115076

gcc/ChangeLog
gcc/genpreds.c

index 4814be31e3940b2a9f45f79ce478facb20eb6f55..c27d6d23dabf8bd0f2f107f5e2666e9890ff97c0 100644 (file)
@@ -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
index a9a7f2cc7bc80da8cdc034d305c13c1e65c719f2..655c4e6529329456073438a36e26782747bdee5a 100644 (file)
@@ -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);