]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 12:41:33 +0000 (13:41 +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 9875a26895c62518c297ac534e793a27dbd4534c..42e7f285f58031989c2901466e4e33830ce75841 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,