diff options
author | Richard Guenther <rguenther@suse.de> | 2009-07-15 09:25:34 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-07-15 09:25:34 +0000 |
commit | c9b2f286db776b5cdf5e3c7cf3301a8d555f64c1 (patch) | |
tree | 99fb493292063f503e5e15e9f5a7b7019d89a89f /gcc/alias.c | |
parent | 31d29c406122cbefe9ee1f249c5a6f06de8cde09 (diff) | |
download | gcc-c9b2f286db776b5cdf5e3c7cf3301a8d555f64c1.zip gcc-c9b2f286db776b5cdf5e3c7cf3301a8d555f64c1.tar.gz gcc-c9b2f286db776b5cdf5e3c7cf3301a8d555f64c1.tar.bz2 |
re PR bootstrap/40753 (ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c)
2009-07-15 Richard Guenther <rguenther@suse.de>
PR middle-end/40753
* alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL
bases.
* gcc.c-torture/compile/pr40753.c: New testcase.
From-SVN: r149664
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index e9cc2d8..fc259b8 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -279,6 +279,11 @@ ao_ref_from_mem (ao_ref *ref, const_rtx mem) && TREE_CODE (TREE_OPERAND (base, 0)) != SSA_NAME) return false; + /* The tree oracle doesn't like to have these. */ + if (TREE_CODE (base) == FUNCTION_DECL + || TREE_CODE (base) == LABEL_DECL) + return false; + /* If this is a reference based on a partitioned decl replace the base with an INDIRECT_REF of the pointer representative we created during stack slot partitioning. */ |