From a0a74fda8d82ea0bc8bed0f8c7a092bc5e572291 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 24 Jan 1994 14:56:27 -0800 Subject: [PATCH] (ADDRESS_COST): Define to 1. From-SVN: r6425 --- gcc/config/sparc/sparc.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index bf7f25d2993..06f9ee41754 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1493,11 +1493,10 @@ extern struct rtx_def *legitimize_pic_address (); return 0; \ return 8; -/* SPARC offers addressing modes which are "as cheap as a register". - See sparc.c (or gcc.texinfo) for details. */ +/* Compute the cost of an address. For the sparc, all valid addresses are + the same cost. */ -#define ADDRESS_COST(RTX) \ - (GET_CODE (RTX) == REG ? 1 : sparc_address_cost (RTX)) +#define ADDRESS_COST(RTX) 1 /* Compute extra cost of moving data between one register class and another. */