diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-24 15:37:32 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-24 15:37:32 +0000 |
commit | 8cee8dc0e0c993d62de992c0b1acdd962232c48d (patch) | |
tree | b906ae87996cd4f2fdf60f2a50c3cbf838d510f2 /gcc/builtins.c | |
parent | 172fe0795649ae68922cdd7bf6d5c8399906c312 (diff) | |
download | gcc-8cee8dc0e0c993d62de992c0b1acdd962232c48d.tar.gz |
* tree.h (union tree_ann_d): Don't declare.
(tree_base): Remove ann field.
(struct var_ann_d): Declare forward.
(tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
(DECL_VAR_ANN_PTR): New macro.
* tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
accept only VAR, PARM or RESULT decls.
(create_tree_common_ann): Remove.
(remove_referenced_var): Use DECL_VAR_ANN_PTR.
* tree-eh.c (lookup_expr_eh_lp): Remove.
* tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
DECL_VAR_ANN_PTR.
(ann_type, tree_common_ann, get_tree_common_ann): Remove.
* tree-flow.h (enum tree_ann_type): Remove.
(struct tree_ann_common_d): Remove.
(struct var_ann_d): Remove common field.
(union tree_ann_d): Remove.
(tree_ann_t, tree_ann_common_t): Remove typedefs.
(tree_common_ann, get_tree_common_ann, ann_type,
create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
* tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
* tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
* builtins.c (expand_builtin_memcpy): Use
currently_expanding_gimple_stmt instead of tree annotation.
(expand_builtin_memset_args): Ditto.
* cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
(expand_call_stmt): Don't set tree annotation.
(expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
* expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
* gimple.h (currently_expanding_gimple_stmt): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154502 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 62a39a6ae86..835d78888ff 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -3259,7 +3259,6 @@ expand_builtin_memcpy (tree exp, rtx target) rtx dest_mem, src_mem, dest_addr, len_rtx; HOST_WIDE_INT expected_size = -1; unsigned int expected_align = 0; - tree_ann_common_t ann; /* If DEST is not a pointer type, call the normal function. */ if (dest_align == 0) @@ -3270,9 +3269,9 @@ expand_builtin_memcpy (tree exp, rtx target) if (src_align == 0) return NULL_RTX; - ann = tree_common_ann (exp); - if (ann) - stringop_block_profile (ann->stmt, &expected_align, &expected_size); + if (currently_expanding_gimple_stmt) + stringop_block_profile (currently_expanding_gimple_stmt, + &expected_align, &expected_size); if (expected_align < dest_align) expected_align = dest_align; @@ -3737,7 +3736,6 @@ expand_builtin_memset_args (tree dest, tree val, tree len, rtx dest_mem, dest_addr, len_rtx; HOST_WIDE_INT expected_size = -1; unsigned int expected_align = 0; - tree_ann_common_t ann; dest_align = get_pointer_alignment (dest, BIGGEST_ALIGNMENT); @@ -3745,9 +3743,9 @@ expand_builtin_memset_args (tree dest, tree val, tree len, if (dest_align == 0) return NULL_RTX; - ann = tree_common_ann (orig_exp); - if (ann) - stringop_block_profile (ann->stmt, &expected_align, &expected_size); + if (currently_expanding_gimple_stmt) + stringop_block_profile (currently_expanding_gimple_stmt, + &expected_align, &expected_size); if (expected_align < dest_align) expected_align = dest_align; |