diff options
author | Jan Hubicka <jh@suse.cz> | 2005-05-13 15:57:19 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-05-13 13:57:19 +0000 |
commit | 81cfbbc23c53d29b16cae24c98eb0a7d15e2c3fc (patch) | |
tree | 0103e79ff875c3089dc30563ad5cc977bee6de6e /gcc/tree-inline.c | |
parent | 618656ff893c2741edeb413fb2fa294e867d28cd (diff) | |
download | gcc-81cfbbc23c53d29b16cae24c98eb0a7d15e2c3fc.zip gcc-81cfbbc23c53d29b16cae24c98eb0a7d15e2c3fc.tar.gz gcc-81cfbbc23c53d29b16cae24c98eb0a7d15e2c3fc.tar.bz2 |
builtins-43.c: Use gimple dump instead of generic.
* gcc.dg/builtins-43.c: Use gimple dump instead of generic.
* gcc.dg/fold-xor-?.c: Likewise.
* gcc.dg/pr15784-?.c: Likewise.
* gcc.dg/pr20922-?.c: Likewise.
* gcc.dg/tree-ssa/20050128-1.c: Likewise.
* gcc.dg/tree-ssa/pr17598.c: Likewise.
* gcc.dg/tree-ssa/pr20470.c: Likewise.
* tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
* tree-optimize.c (pass_gimple): Kill.
(init_tree_optimization_passes): Kill pass_gimple.
* tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
* tree-dump.c (dump_files): Rename .generic to .gimple.*
From-SVN: r99658
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 696e7b4..5873d62 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -566,21 +566,15 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data) { /* Get rid of *& from inline substitutions that can happen when a pointer argument is an ADDR_EXPR. */ - tree decl = TREE_OPERAND (*tp, 0), value; + tree decl = TREE_OPERAND (*tp, 0); splay_tree_node n; n = splay_tree_lookup (id->decl_map, (splay_tree_key) decl); if (n) { - value = (tree) n->value; - STRIP_NOPS (value); - if (TREE_CODE (value) == ADDR_EXPR - && (lang_hooks.types_compatible_p - (TREE_TYPE (*tp), TREE_TYPE (TREE_OPERAND (value, 0))))) - { - *tp = TREE_OPERAND (value, 0); - return copy_body_r (tp, walk_subtrees, data); - } + *tp = build_fold_indirect_ref ((tree)n->value); + *walk_subtrees = 0; + return NULL; } } |