The attached patch improves some S/390 function documentation.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
gcc/ChangeLog
* config/s390/s390.c (s390_rtx_costs): Update documentation.
>From ba5a56e03402a75bb0cc807eb27c57d93ce736e1 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <[email protected]>
Date: Thu, 14 Apr 2016 14:59:40 +0100
Subject: [PATCH] S/390: Improve documentation of s390_reload_costs.
---
gcc/config/s390/s390.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 4f219be..cb5dd5f 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -3371,8 +3371,10 @@ s390_memory_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
/* Compute a (partial) cost for rtx X. Return true if the complete
cost has been computed, and false if subexpressions should be
- scanned. In either case, *TOTAL contains the cost result.
- OUTER_CODE contains the code of the superexpression of x. */
+ scanned. In either case, *TOTAL contains the cost result. The
+ initial value of *TOTAL is the default value computed by
+ rtx_cost. It may be left unmodified. OUTER_CODE contains the
+ code of the superexpression of x. */
static bool
s390_rtx_costs (rtx x, machine_mode mode, int outer_code,
--
2.3.0