diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2003-05-27 14:44:57 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2003-05-27 14:44:57 -0400 |
commit | 7a6cdb44fd51d6036d32a732363f19c8e51f0d89 (patch) | |
tree | 6be268fb48b8e0a8cb871503b25decd003ae8522 /gcc/calls.c | |
parent | 86982c71d17f2e9888e649fe5c88b65ff84561d8 (diff) | |
download | gcc-7a6cdb44fd51d6036d32a732363f19c8e51f0d89.zip gcc-7a6cdb44fd51d6036d32a732363f19c8e51f0d89.tar.gz gcc-7a6cdb44fd51d6036d32a732363f19c8e51f0d89.tar.bz2 |
tree.h (contains_placeholder_p): Now returns bool.
* tree.h (contains_placeholder_p): Now returns bool.
(CONTAINS_PLACEHOLDER_P): New macro.
(type_contains_placeholder_p): New function.
* tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
(contains_placeholder_p): Now returns bool.
Rework to use CONTAINS_PLACEHOLDER_P macro.
(type_contains_placeholder_p): New function.
* fold-const.c (fold, case COMPONENT_REF): Don't fold if
type_contains_placeholder_p.
(fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
Use CONTAINS_PLACEHOLDER_P macro.
* builtins.c (fold_builtin): Likewise.
* calls.c (initialize_argument_information): Likewise.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
* explow.c (expr_size): Likewise.
* expr.c (store_constructor, get_inner_reference): Likewise.
* function.c (assign_parms): Likewise.
* stor-layout.c (variable_size): Likewise.
From-SVN: r67189
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index a3f2de0..9d7899c 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1146,8 +1146,7 @@ initialize_argument_information (num_actuals, args, args_size, n_named_args, with those made by function.c. */ /* See if this argument should be passed by invisible reference. */ - if ((TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST - && contains_placeholder_p (TYPE_SIZE (type))) + if (CONTAINS_PLACEHOLDER_P (TYPE_SIZE (type)) || TREE_ADDRESSABLE (type) #ifdef FUNCTION_ARG_PASS_BY_REFERENCE || FUNCTION_ARG_PASS_BY_REFERENCE (*args_so_far, TYPE_MODE (type), |