diff options
author | Richard Henderson <rth@redhat.com> | 2006-01-24 15:48:17 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2006-01-24 15:48:17 -0800 |
commit | 9cd9e512cb50cc49de86f397e716279286712f82 (patch) | |
tree | 0827a234c38b01dc573baa50665e2f3c2f1afe68 /gcc/alias.h | |
parent | 7faaba2884bb256dc3e2c9addd5357fbde4e2c9c (diff) | |
download | gcc-9cd9e512cb50cc49de86f397e716279286712f82.tar.gz |
alias.h (ALIAS_SET_MEMORY_BARRIER): New.
* alias.h (ALIAS_SET_MEMORY_BARRIER): New.
* alias.c (true_dependence): Respect it.
(canon_true_dependence, write_dependence_p): Likewise.
* builtins.c (get_builtin_sync_mem): Set it.
From-SVN: r110189
Diffstat (limited to 'gcc/alias.h')
-rw-r--r-- | gcc/alias.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/alias.h b/gcc/alias.h index c9154b3e58f..83cc2d55094 100644 --- a/gcc/alias.h +++ b/gcc/alias.h @@ -27,4 +27,10 @@ extern HOST_WIDE_INT get_frame_alias_set (void); extern void record_base_value (unsigned int, rtx, int); extern bool component_uses_parent_alias_set (tree); +/* This alias set can be used to force a memory to conflict with all + other memories, creating a barrier across which no memory reference + can move. Note that there are other legacy ways to create such + memory barriers, including an address of SCRATCH. */ +#define ALIAS_SET_MEMORY_BARRIER ((HOST_WIDE_INT) -1) + #endif /* GCC_ALIAS_H */ |