Fix cast in df_worklist_dataflow_doublequeue
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 15 Feb 2021 09:41:44 +0000 (10:41 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 15 Feb 2021 09:43:30 +0000 (10:43 +0100)
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.

gcc/df-core.c

index 8536e5e1f51df85b965a31ca1b112cc8afef5400..b4407eec460123175149dee7f4d755cada84c4bc 100644 (file)
@@ -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,