diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-24 23:48:17 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-24 23:48:17 +0000 |
commit | c94cfd1c10db160ab2fc183ae48c00c380fd37bd (patch) | |
tree | 0827a234c38b01dc573baa50665e2f3c2f1afe68 /gcc/alias.h | |
parent | b818d1a93426c89deaeea9273e1fa400b5890c0e (diff) | |
download | gcc-c94cfd1c10db160ab2fc183ae48c00c380fd37bd.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110189 138bc75d-0d04-0410-961f-82ee72b054a4
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 */ |