Commit d6e9821f by Richard Henderson Committed by Richard Henderson

alpha.c (alpha_gimplify_va_arg_1): Use build_va_arg_indirect_ref.

        * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
        build_va_arg_indirect_ref.
        (alpha_gimplify_va_arg): Likewise.
        * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
        * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
        * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
        * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
        * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
        * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
        Likewise.
        * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.

From-SVN: r101909
parent 4e402b2c
2005-07-11 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
build_va_arg_indirect_ref.
(alpha_gimplify_va_arg): Likewise.
* config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
* config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
* config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
* config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
* config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
* config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
Likewise.
* config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2005-07-12 Zdenek Dvorak <dvorakz@suse.cz> 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
* tree-flow.h (remove_empty_loops, single_dom_exit): Declare. * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
......
...@@ -6238,7 +6238,7 @@ alpha_gimplify_va_arg_1 (tree type, tree base, tree offset, tree *pre_p) ...@@ -6238,7 +6238,7 @@ alpha_gimplify_va_arg_1 (tree type, tree base, tree offset, tree *pre_p)
build (PLUS_EXPR, TREE_TYPE (offset), offset, t)); build (PLUS_EXPR, TREE_TYPE (offset), offset, t));
gimplify_and_add (t, pre_p); gimplify_and_add (t, pre_p);
return build_fold_indirect_ref (addr); return build_va_arg_indirect_ref (addr);
} }
static tree static tree
...@@ -6279,7 +6279,7 @@ alpha_gimplify_va_arg (tree valist, tree type, tree *pre_p, tree *post_p) ...@@ -6279,7 +6279,7 @@ alpha_gimplify_va_arg (tree valist, tree type, tree *pre_p, tree *post_p)
gimplify_and_add (t, pre_p); gimplify_and_add (t, pre_p);
if (indirect) if (indirect)
r = build_fold_indirect_ref (r); r = build_va_arg_indirect_ref (r);
return r; return r;
} }
......
...@@ -725,10 +725,10 @@ c4x_gimplify_va_arg_expr (tree valist, tree type, ...@@ -725,10 +725,10 @@ c4x_gimplify_va_arg_expr (tree valist, tree type,
t = build (PREDECREMENT_EXPR, TREE_TYPE (valist), valist, t = build (PREDECREMENT_EXPR, TREE_TYPE (valist), valist,
build_int_cst (NULL_TREE, int_size_in_bytes (type))); build_int_cst (NULL_TREE, int_size_in_bytes (type)));
t = fold_convert (build_pointer_type (type), t); t = fold_convert (build_pointer_type (type), t);
t = build_fold_indirect_ref (t); t = build_va_arg_indirect_ref (t);
if (indirect) if (indirect)
t = build_fold_indirect_ref (t); t = build_va_arg_indirect_ref (t);
return t; return t;
} }
......
...@@ -2036,8 +2036,8 @@ i860_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p) ...@@ -2036,8 +2036,8 @@ i860_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p)
addr = fold_convert (type_ptr, addr); addr = fold_convert (type_ptr, addr);
if (indirect) if (indirect)
addr = build_fold_indirect_ref (addr); addr = build_va_arg_indirect_ref (addr);
return build_fold_indirect_ref (addr); return build_va_arg_indirect_ref (addr);
} }
/* Compute a (partial) cost for rtx X. Return true if the complete /* Compute a (partial) cost for rtx X. Return true if the complete
......
...@@ -4186,11 +4186,11 @@ mips_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p) ...@@ -4186,11 +4186,11 @@ mips_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p)
COND_EXPR_ELSE (addr) = t; COND_EXPR_ELSE (addr) = t;
addr = fold_convert (build_pointer_type (type), addr); addr = fold_convert (build_pointer_type (type), addr);
addr = build_fold_indirect_ref (addr); addr = build_va_arg_indirect_ref (addr);
} }
if (indirect) if (indirect)
addr = build_fold_indirect_ref (addr); addr = build_va_arg_indirect_ref (addr);
return addr; return addr;
} }
......
...@@ -5834,10 +5834,10 @@ hppa_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p) ...@@ -5834,10 +5834,10 @@ hppa_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p)
} }
t = fold_convert (ptr, t); t = fold_convert (ptr, t);
t = build_fold_indirect_ref (t); t = build_va_arg_indirect_ref (t);
if (indirect) if (indirect)
t = build_fold_indirect_ref (t); t = build_va_arg_indirect_ref (t);
return t; return t;
} }
......
...@@ -6811,7 +6811,7 @@ sh_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, ...@@ -6811,7 +6811,7 @@ sh_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p,
result = tmp; result = tmp;
if (pass_by_ref) if (pass_by_ref)
result = build_fold_indirect_ref (result); result = build_va_arg_indirect_ref (result);
return result; return result;
} }
......
...@@ -1480,7 +1480,7 @@ xstormy16_expand_builtin_va_arg (tree valist, tree type, tree *pre_p, ...@@ -1480,7 +1480,7 @@ xstormy16_expand_builtin_va_arg (tree valist, tree type, tree *pre_p,
gimplify_and_add (t, pre_p); gimplify_and_add (t, pre_p);
addr = fold_convert (build_pointer_type (type), addr); addr = fold_convert (build_pointer_type (type), addr);
return build_fold_indirect_ref (addr); return build_va_arg_indirect_ref (addr);
} }
/* Initialize the variable parts of a trampoline. ADDR is an RTX for /* Initialize the variable parts of a trampoline. ADDR is an RTX for
......
...@@ -2303,8 +2303,8 @@ xtensa_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, ...@@ -2303,8 +2303,8 @@ xtensa_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p,
addr = fold_convert (build_pointer_type (type), addr); addr = fold_convert (build_pointer_type (type), addr);
if (indirect) if (indirect)
addr = build_fold_indirect_ref (addr); addr = build_va_arg_indirect_ref (addr);
return build_fold_indirect_ref (addr); return build_va_arg_indirect_ref (addr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment