--- gcc/config/we32k/we32k.h 2018/04/24 18:10:24 1.1.1.1 +++ gcc/config/we32k/we32k.h 2018/04/24 18:28:32 1.1.1.4 @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler. AT&T we32000 version. + Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. Contributed by John Wehle (john@feith1.uucp) - Copyright (C) 1991-1992 Free Software Foundation, Inc. This file is part of GNU CC. @@ -16,12 +16,13 @@ GNU General Public License for more deta You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ /* Names to predefine in the preprocessor for this target machine. */ -#define CPP_PREDEFINES "-Dwe32000 -Du3b -Dunix" +#define CPP_PREDEFINES "-Dwe32000 -Du3b2 -Dunix -Asystem(unix) -Acpu(we32000) -Amachine(we32000)" /* Print subsidiary information on the compiler version in use. */ @@ -304,10 +305,11 @@ enum reg_class { NO_REGS, GENERAL_REGS, /* Value is 1 if returning from a function call automatically pops the arguments described by the number-of-args field in the call. + FUNDECL is the declaration node of the function (as a tree), FUNTYPE is the data type of the function (as a tree), or for a library call it is an identifier node for the subroutine name. */ -#define RETURN_POPS_ARGS(FUNTYPE,SIZE) (SIZE) +#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) (SIZE) /* Define how to find the value returned by a function. VALTYPE is the data type of the value (as a tree). @@ -647,10 +649,9 @@ enum reg_class { NO_REGS, GENERAL_REGS, /* Nonzero if access to memory by bytes is slow and undesirable. */ #define SLOW_BYTE_ACCESS 0 -/* Define if shifts truncate the shift count - which implies one can omit a sign-extension or zero-extension - of a shift count. */ -#define SHIFT_COUNT_TRUNCATED +/* Define this to be nonzero if shift instructions ignore all but the low-order + few bits. */ +#define SHIFT_COUNT_TRUNCATED 1 /* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits is done just by pretending it is already truncated. */ @@ -858,7 +859,7 @@ do { union { float f; long l;} tem; \ fprintf (FILE, "\t.byte 0x%x\n", (VALUE)) #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ -{ \ +do { \ unsigned char *s; \ int i; \ for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ @@ -868,7 +869,7 @@ do { union { float f; long l;} tem; \ fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \ } \ fputs ("\n", (FILE)); \ -} +} while (0) /* This is how to output an insn to push a register on the stack. It need not be very fast code. */