diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-26 13:56:23 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-26 13:56:23 +0000 |
commit | 96cd09d2177283716462092c20384c717a6aaa03 (patch) | |
tree | e46a6aeae9ebea5d891d766baa6784291c02d937 /gcc/alias.c | |
parent | 3bc5ebb9c1982885f4fc1ed43dad82c768673cdd (diff) | |
download | gcc-96cd09d2177283716462092c20384c717a6aaa03.tar.gz |
* tree.h (DECL_RESTRICTED_P): Delete.
(DECL_READ_P): Add comment.
(DECL_NONSHAREABLE): Likewise.
(TYPE_NO_FORCE_BLK): Fix comment.
(struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3.
* tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P.
* tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
* tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
fortran/
* trans-decl.c (gfc_finish_var_decl): Do not set DECL_RESTRICTED_P.
* alias.c (nonoverlapping_component_refs_p): Fix thinko.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193815 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 21daa5fdb4f..15fd7f31804 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -2237,19 +2237,9 @@ nonoverlapping_component_refs_p (const_rtx rtlx, const_rtx rtly) found: /* If we're left with accessing different fields of a structure, then no - possible overlap, unless they are both true bitfields, i.e. bitfields - for which the size isn't a multiple of the (memory) unit. */ + possible overlap, unless they are both bitfields. */ if (TREE_CODE (typex) == RECORD_TYPE && fieldx != fieldy) - { - if (!DECL_BIT_FIELD (fieldx) || !DECL_BIT_FIELD (fieldy)) - return true; - - if ((tree_low_cst (DECL_SIZE (fieldx), 1) % BITS_PER_UNIT) == 0 - || (tree_low_cst (DECL_SIZE (fieldy), 1) % BITS_PER_UNIT) == 0) - return true; - - return false; - } + return !(DECL_BIT_FIELD (fieldx) && DECL_BIT_FIELD (fieldy)); /* The comparison on the current field failed. If we're accessing a very nested structure, look at the next outer level. */ |