diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2006-03-05 06:01:33 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2006-03-05 06:01:33 +0000 |
commit | d42ee77ad0a9a063839860c32eda232884def053 (patch) | |
tree | 5b74a628f0e5b993b380d7ddae22d274d9a038e9 /gcc/recog.c | |
parent | dc782dcd16b10eb6b4d083222228f8cd1ac52ac1 (diff) | |
download | gcc-d42ee77ad0a9a063839860c32eda232884def053.zip gcc-d42ee77ad0a9a063839860c32eda232884def053.tar.gz gcc-d42ee77ad0a9a063839860c32eda232884def053.tar.bz2 |
recog.c (volatile_mem_p, [...]): Remove.
* recog.c (volatile_mem_p, validate_change_maybe_volatile):
Remove.
* recog.h: Remove the prototype for
validate_change_maybe_volatile.
From-SVN: r111731
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index fde429c..82cacfe 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -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. */ |