From 51fa2e5fc3fbebd7ecb1e3fb9d9dea794c26410f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 3 Jul 2004 13:56:38 +0000 Subject: [PATCH] * tree-sra.c (generate_element_init): Remove any useless conversions. From-SVN: r84057 --- gcc/ChangeLog | 2 ++ gcc/tree-sra.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9a289db11a..50cc747ec22 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,6 @@ 2004-07-03 Richard Kenner + + * tree-sra.c (generate_element_init): Remove any useless conversions. * gimplify.c (gimplify_conversion): Remove stripping useless conversions from here. diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index 44f06503aaf..0f04fcb2a2e 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -1513,10 +1513,13 @@ generate_element_zero (struct sra_elt *elt, tree *list_p) static void generate_element_init (struct sra_elt *elt, tree init, tree *list_p) { - enum tree_code init_code = TREE_CODE (init); + enum tree_code init_code; struct sra_elt *sub; tree t; + STRIP_USELESS_TYPE_CONVERSION (init); + init_code = TREE_CODE (init); + if (elt->is_scalar) { if (elt->replacement) -- 2.30.2