diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-03 12:10:40 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-03 12:10:40 +0000 |
commit | 9c01641d09983b949e67b03d184cabce23aeff13 (patch) | |
tree | 32513dfa61744878b0690d21bee51395edb41ec3 /gcc/tree-ssa-alias.c | |
parent | dc3b30622b4271ddd3318589bf96f858b88ba030 (diff) | |
download | gcc-9c01641d09983b949e67b03d184cabce23aeff13.tar.gz |
2011-03-03 Richard Guenther <rguenther@suse.de>
PR middle-end/47283
* tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
match comment.
(refs_may_alias_p_1): For release branches return true if
we are confused by our input.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 68321d29e24..bd8953b3d8e 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -178,7 +178,7 @@ ptr_deref_may_alias_decl_p (tree ptr, tree decl) || (TREE_CODE (decl) != VAR_DECL && TREE_CODE (decl) != PARM_DECL && TREE_CODE (decl) != RESULT_DECL)) - return false; + return true; /* Disregard pointer offsetting. */ if (TREE_CODE (ptr) == POINTER_PLUS_EXPR) @@ -1080,7 +1080,12 @@ refs_may_alias_p_1 (ao_ref *ref1, ao_ref *ref2, bool tbaa_p) ao_ref_alias_set (ref2), -1, tbaa_p); + /* We really do not want to end up here, but returning true is safe. */ +#ifdef ENABLE_CHECKING gcc_unreachable (); +#else + return true; +#endif } bool |