From a8d762e1d2c1c7f7940e6573c272c2b0c5dbe249 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 4 Apr 1996 12:12:59 -0800 Subject: [PATCH] (GIV_SORT_CRITERION): Define. From-SVN: r11669 --- gcc/config/sh/sh.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index c2e81b44cc2..6309a38ca41 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -1589,5 +1589,13 @@ extern int pragma_interrupt; /* ??? Define ADJUST_COSTS? */ +/* Since the SH architecture lacks negative address offsets, + the givs should be sorted smallest to largest so combine_givs + has maximum opportunity to combine givs. */ +#define GIV_SORT_CRITERION(X, Y) \ + if (GET_CODE ((X)->add_val) == CONST_INT \ + && GET_CODE ((Y)->add_val) == CONST_INT) \ + return INTVAL ((X)->add_val) - INTVAL ((Y)->add_val); + /* For the sake of libgcc2.c, indicate target supports atexit. */ #define HAVE_ATEXIT