diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-27 18:44:57 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-27 18:44:57 +0000 |
commit | ce3fb06e43047b540787319dd59ecd771577218c (patch) | |
tree | 6be268fb48b8e0a8cb871503b25decd003ae8522 /gcc/builtins.c | |
parent | bbe0b2c2b6d807fa7aded9b7a2002a5f34442f0d (diff) | |
download | ppe42-gcc-ce3fb06e43047b540787319dd59ecd771577218c.tar.gz ppe42-gcc-ce3fb06e43047b540787319dd59ecd771577218c.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67189 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index e2da8b87373..eef1cce496c 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5242,7 +5242,7 @@ fold_builtin (exp) /* Optimize pow(x,2.0) = x*x. */ if (REAL_VALUES_EQUAL (c, dconst2) && (*lang_hooks.decls.global_bindings_p) () == 0 - && ! contains_placeholder_p (arg0)) + && ! CONTAINS_PLACEHOLDER_P (arg0)) { arg0 = save_expr (arg0); return fold (build (MULT_EXPR, type, arg0, arg0)); @@ -5252,7 +5252,7 @@ fold_builtin (exp) if (flag_unsafe_math_optimizations && REAL_VALUES_EQUAL (c, dconstm2) && (*lang_hooks.decls.global_bindings_p) () == 0 - && ! contains_placeholder_p (arg0)) + && ! CONTAINS_PLACEHOLDER_P (arg0)) { arg0 = save_expr (arg0); return fold (build (RDIV_EXPR, type, |