From: Eric Botcazou Date: Mon, 15 Feb 2021 09:41:44 +0000 (+0100) Subject: Fix cast in df_worklist_dataflow_doublequeue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ec4f693fb5e2763d20f33d635d0d76062a74b07;p=gcc.git Fix cast in df_worklist_dataflow_doublequeue The existing cast to float gives weird results in the RTL dump files on x86 when the compiler is configured -with-fpmath=sse. gcc/ * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast. --- diff --git a/gcc/df-core.c b/gcc/df-core.c index 8536e5e1f51..b4407eec460 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -1064,7 +1064,7 @@ df_worklist_dataflow_doublequeue (struct dataflow *dataflow, " n_basic_blocks %d n_edges %d" " count %d (%5.2g)\n", n_basic_blocks_for_fn (cfun), n_edges_for_fn (cfun), - dcount, dcount / (float)n_basic_blocks_for_fn (cfun)); + dcount, dcount / (double)n_basic_blocks_for_fn (cfun)); } /* Worklist-based dataflow solver. It uses sbitmap as a worklist,