aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-11-26 13:56:23 +0000
committerEric Botcazou <ebotcazou@adacore.com>2012-11-26 13:56:23 +0000
commitdfbe58f5c7d1e93f7764b52a18293c0491c4d44c (patch)
treee46a6aeae9ebea5d891d766baa6784291c02d937 /gcc/alias.c
parenta7c309748595ee965d2f1ad769a87cb535af0b94 (diff)
* 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: https://gcc.gnu.org/svn/gcc/trunk@193815 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c14
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. */