summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 933da66b526..b6d7f8dd4ce 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -321,6 +321,10 @@ struct gcc_target
not necessarily defined at this point. */
bool (* rtx_costs) PARAMS ((rtx x, int code, int outer_code, int *total));
+ /* Compute the cost of X, used as an address. Never called with
+ invalid addresses. */
+ int (* address_cost) PARAMS ((rtx x));
+
/* Leave the boolean fields at the end. */
/* True if arbitrary sections are supported. */