From 08c1638dab9becfafc65064891c1c59f5711c27f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 26 Jun 2019 20:42:30 -0600 Subject: [PATCH] re PR tree-optimization/90883 (Generated code is worse if returned struct is unnamed) PR tree-optimization/90883 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature. (delete_dead_or_redundant_assignment): Likewise. From-SVN: r272726 --- gcc/tree-ssa-dse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 9b4d19232ee..1b1a9f34230 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -76,8 +76,8 @@ along with GCC; see the file COPYING3. If not see fact, they are the same transformation applied to different views of the CFG. */ -static void delete_dead_or_redundant_assignment (gimple_stmt_iterator *, char []); -static void delete_dead_or_redundant_call (gimple_stmt_iterator *, char []); +static void delete_dead_or_redundant_assignment (gimple_stmt_iterator *, const char *); +static void delete_dead_or_redundant_call (gimple_stmt_iterator *, const char *); /* Bitmap of blocks that have had EH statements cleaned. We should remove their dead edges eventually. */ @@ -868,7 +868,7 @@ private: /* Delete a dead call at GSI, which is mem* call of some kind. */ static void -delete_dead_or_redundant_call (gimple_stmt_iterator *gsi, char *type) +delete_dead_or_redundant_call (gimple_stmt_iterator *gsi, const char *type) { gimple *stmt = gsi_stmt (*gsi); if (dump_file && (dump_flags & TDF_DETAILS)) @@ -902,7 +902,7 @@ delete_dead_or_redundant_call (gimple_stmt_iterator *gsi, char *type) /* Delete a dead store at GSI, which is a gimple assignment. */ static void -delete_dead_or_redundant_assignment (gimple_stmt_iterator *gsi, char *type) +delete_dead_or_redundant_assignment (gimple_stmt_iterator *gsi, const char *type) { gimple *stmt = gsi_stmt (*gsi); if (dump_file && (dump_flags & TDF_DETAILS)) -- 2.30.2