diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2004-05-24 16:37:17 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2004-05-24 16:37:17 +0000 |
commit | aef0afc4f41cab8148ee17a4ea7dddb6fca0342e (patch) | |
tree | f551be5e22d25c37547349ed76c50f067903bb89 /gcc/tree-gimple.c | |
parent | a1db9d9c61bb4c74f5dac30c9d673c84b63c6384 (diff) | |
download | gcc-aef0afc4f41cab8148ee17a4ea7dddb6fca0342e.zip gcc-aef0afc4f41cab8148ee17a4ea7dddb6fca0342e.tar.gz gcc-aef0afc4f41cab8148ee17a4ea7dddb6fca0342e.tar.bz2 |
re PR tree-optimization/14197 (Wrong code for bcopy/memmove (string-asm-2.c))
PR tree-optimization/14197
* builtins.c: Include "tree-gimple.h"
(readonly_data_expr): Use get_base_address. Make sure to call
decl_readonly_section only on trees it can handle.
* tree-gimple.c (get_base_address): Accept STRING_CST and
CONSTRUCTOR expressions.
* Makefile.in: Update dependencies.
From-SVN: r82209
Diffstat (limited to 'gcc/tree-gimple.c')
-rw-r--r-- | gcc/tree-gimple.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-gimple.c b/gcc/tree-gimple.c index dbe2966..18bc2f8 100644 --- a/gcc/tree-gimple.c +++ b/gcc/tree-gimple.c @@ -574,6 +574,8 @@ get_base_address (tree t) do { if (SSA_VAR_P (t) + || TREE_CODE (t) == STRING_CST + || TREE_CODE (t) == CONSTRUCTOR || TREE_CODE (t) == INDIRECT_REF) return t; |