--- gcc/config/convex.h 2018/04/24 17:51:37 1.1 +++ gcc/config/convex.h 2018/04/24 18:00:05 1.1.1.3 @@ -112,7 +112,7 @@ extern char *output_call (); /* Define this if most significant word of a multiword number is numbered. */ #define WORDS_BIG_ENDIAN 1 -/* Number of bits in an addressible storage unit */ +/* Number of bits in an addressable storage unit */ #define BITS_PER_UNIT 8 /* Width in bits of a "word", which is the contents of a machine register. @@ -150,9 +150,9 @@ extern char *output_call (); /* beware of doubles in structs -- 64 is incompatible with pcc */ #define BIGGEST_ALIGNMENT 32 -/* Define this if move instructions will actually fail to work +/* Set this nonzero if move instructions will actually fail to work when given unaligned data. */ -/* #define STRICT_ALIGNMENT */ +#define STRICT_ALIGNMENT 0 /* Define sizes of basic C types to conform to ordinary usage -- these types depend on BITS_PER_WORD otherwise. */ @@ -607,10 +607,14 @@ enum reg_class { /* Nonzero if X is a hard reg that can be used as an index or if it is a pseudo reg. */ -#define REG_OK_FOR_INDEX_P(X) (REGNO (X) > 8) +#define REG_OK_FOR_INDEX_P(X) \ + (REGNO (X) > 8 \ + && REGNO (X) != VIRTUAL_STACK_VARS_REGNUM \ + && REGNO (X) != VIRTUAL_STACK_DYNAMIC_REGNUM \ + && REGNO (X) != VIRTUAL_OUTGOING_ARGS_REGNUM) /* Nonzero if X is a hard reg that can be used as a base reg or if it is a pseudo reg. */ -#define REG_OK_FOR_BASE_P(X) (REGNO (X) > 8) +#define REG_OK_FOR_BASE_P(X) REG_OK_FOR_INDEX_P (X) #else @@ -751,7 +755,7 @@ enum reg_class { of a switch statement. If the code is computed here, return it with a return statement. Otherwise, break from the switch. */ -#define CONST_COSTS(RTX,CODE) \ +#define CONST_COSTS(RTX,CODE,OUTER_CODE) \ case CONST: \ case LABEL_REF: \ case SYMBOL_REF: \ @@ -764,7 +768,7 @@ enum reg_class { switch on CODE. On C1 and C2, multiply is faster than shift. */ -#define RTX_COSTS(RTX,CODE) \ +#define RTX_COSTS(RTX,CODE,OUTER_CODE) \ case MULT: \ total = COSTS_N_INSNS (4); \ break; \ @@ -1164,20 +1168,17 @@ bss_section () \ #define SET_DECL_VINDEX(DECL, INDEX) \ (DECL_VINDEX (DECL) = (INDEX)) +#if 0 /* collect2.c should no longer need these. */ /* Defs for compiling collect2.c in -pcc mode during bootstrap. */ #ifdef COLLECT -#ifdef __STDC__ +#ifndef __STDC__ -#define HAVE_STRERROR - -#else - -#define vfprintf(file,fmt,args) _doprnt (fmt, args, file) #define WTERMSIG(x) (((union wait *) &(x))->w_termsig) #define WEXITSTATUS(x) (((union wait *) &(x))->w_retcode) #endif #endif /* COLLECT */ +#endif /* 0 */