diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-24 16:37:17 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-24 16:37:17 +0000 |
commit | 9ff0637e4475a9a436506de9d49a6c04b86b2364 (patch) | |
tree | f551be5e22d25c37547349ed76c50f067903bb89 /gcc/tree-gimple.c | |
parent | fe8fb39d2bae23d868f3c5b560a43393fdaba0b7 (diff) | |
download | gcc-9ff0637e4475a9a436506de9d49a6c04b86b2364.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82209 138bc75d-0d04-0410-961f-82ee72b054a4
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 dbe2966e1e9..18bc2f8afa3 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; |