Hi,

Please find attached the patch that fixes swap of operands to enum
in ipa-inline.c.

This issue popped up when running dhrystone with -fdump-ipa-all.

Please review the patch and let me know it its okay?

Regression tested on aarch64-elf.

Thanks,
Naveen
--- a/gcc/ipa-inline.c	2015-01-12 11:04:53.627735210 +0530
+++ b/gcc/ipa-inline.c	2015-01-12 11:05:08.395735041 +0530
@@ -1730,10 +1730,10 @@ inline_small_functions (void)
 		   " to be inlined into %s/%i in %s:%i\n"
 		   " Estimated badness is %f, frequency %.2f.\n",
 		   edge->caller->name (), edge->caller->order,
-		   edge->call_stmt ? "unknown"
-		   : gimple_filename ((const_gimple) edge->call_stmt),
-		   edge->call_stmt ? -1
-		   : gimple_lineno ((const_gimple) edge->call_stmt),
+		   edge->call_stmt ? gimple_filename ((const_gimple) edge->call_stmt)
+		   : "unknown",
+		   edge->call_stmt ? gimple_lineno ((const_gimple) edge->call_stmt)
+		   : -1,
 		   badness.to_double (),
 		   edge->frequency / (double)CGRAPH_FREQ_BASE);
 	  if (edge->count)

Reply via email to