recog.c (volatile_mem_p, [...]): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Sun, 5 Mar 2006 06:01:33 +0000 (06:01 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 5 Mar 2006 06:01:33 +0000 (06:01 +0000)
* recog.c (volatile_mem_p, validate_change_maybe_volatile):
Remove.
* recog.h: Remove the prototype for
validate_change_maybe_volatile.

From-SVN: r111731

gcc/ChangeLog
gcc/recog.c
gcc/recog.h

index a5f0a1809e1b6bef71e2d271086172832ec8c23d..89ad55d0e5f813a92ef4adddac961d196149824d 100644 (file)
@@ -1,3 +1,10 @@
+2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
+
+       * recog.c (volatile_mem_p, validate_change_maybe_volatile):
+       Remove.
+       * recog.h: Remove the prototype for
+       validate_change_maybe_volatile.
+
 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
 
        * rtlanal.c (replace_reg): Remove.
index fde429ccf9ca25f29bb615792a9f754325f8aa0c..82cacfed50de03fa94fc9659989ce253e41cdf13 100644 (file)
@@ -238,45 +238,6 @@ validate_change (rtx object, rtx *loc, rtx new, int in_group)
 }
 
 
-/* Function to be passed to for_each_rtx to test whether a piece of
-   RTL contains any mem/v.  */
-static int
-volatile_mem_p (rtx *x, void *data ATTRIBUTE_UNUSED)
-{
-  return (MEM_P (*x) && MEM_VOLATILE_P (*x));
-}
-
-/* Same as validate_change, but doesn't support groups, and it accepts
-   volatile mems if they're already present in the original insn.  */
-
-int
-validate_change_maybe_volatile (rtx object, rtx *loc, rtx new)
-{
-  int result;
-
-  if (validate_change (object, loc, new, 0))
-    return 1;
-
-  if (volatile_ok
-      /* If there isn't a volatile MEM, there's nothing we can do.  */
-      || !for_each_rtx (&PATTERN (object), volatile_mem_p, 0)
-      /* Make sure we're not adding or removing volatile MEMs.  */
-      || for_each_rtx (loc, volatile_mem_p, 0)
-      || for_each_rtx (&new, volatile_mem_p, 0)
-      || !insn_invalid_p (object))
-    return 0;
-
-  volatile_ok = 1;
-
-  gcc_assert (!insn_invalid_p (object));
-
-  result = validate_change (object, loc, new, 0);
-
-  volatile_ok = 0;
-
-  return result;
-}
-
 /* This subroutine of apply_change_group verifies whether the changes to INSN
    were valid; i.e. whether INSN can still be recognized.  */
 
index b10b1613becf09261ce247b870cf42decf2fe949..4e1ac2b79e164078f11b1b8e0eb6e71311b51d2b 100644 (file)
@@ -74,7 +74,6 @@ extern void init_recog_no_volatile (void);
 extern int check_asm_operands (rtx);
 extern int asm_operand_ok (rtx, const char *);
 extern int validate_change (rtx, rtx *, rtx, int);
-extern int validate_change_maybe_volatile (rtx, rtx *, rtx);
 extern int insn_invalid_p (rtx);
 extern int verify_changes (int);
 extern void confirm_change_group (void);