Commit ef0e53ce by Richard Kenner

Replace MAX_UNITS_PER_WORD with MIN_UNITS_PER_WORD.

From-SVN: r8904
parent f13703f9
/* Save and restore call-clobbered registers which are live across a call. /* Save and restore call-clobbered registers which are live across a call.
Copyright (C) 1989, 1992, 1994 Free Software Foundation, Inc. Copyright (C) 1989, 1992, 1994, 1995 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -32,8 +32,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -32,8 +32,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define MAX_MOVE_MAX MOVE_MAX #define MAX_MOVE_MAX MOVE_MAX
#endif #endif
#ifndef MAX_UNITS_PER_WORD #ifndef MIN_UNITS_PER_WORD
#define MAX_UNITS_PER_WORD UNITS_PER_WORD #define MIN_UNITS_PER_WORD UNITS_PER_WORD
#endif #endif
/* Modes for each hard register that we can save. The smallest mode is wide /* Modes for each hard register that we can save. The smallest mode is wide
...@@ -42,13 +42,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -42,13 +42,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
If that is not possible the save is done one register at a time. */ If that is not possible the save is done one register at a time. */
static enum machine_mode static enum machine_mode
regno_save_mode[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MAX_UNITS_PER_WORD + 1]; regno_save_mode[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MIN_UNITS_PER_WORD + 1];
/* For each hard register, a place on the stack where it can be saved, /* For each hard register, a place on the stack where it can be saved,
if needed. */ if needed. */
static rtx static rtx
regno_save_mem[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MAX_UNITS_PER_WORD + 1]; regno_save_mem[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MIN_UNITS_PER_WORD + 1];
/* We will only make a register eligible for caller-save if it can be /* We will only make a register eligible for caller-save if it can be
saved in its widest mode with a simple SET insn as long as the memory saved in its widest mode with a simple SET insn as long as the memory
...@@ -57,9 +57,9 @@ static rtx ...@@ -57,9 +57,9 @@ static rtx
be recognized. */ be recognized. */
static enum insn_code static enum insn_code
reg_save_code[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MAX_UNITS_PER_WORD + 1]; reg_save_code[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MIN_UNITS_PER_WORD + 1];
static enum insn_code static enum insn_code
reg_restore_code[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MAX_UNITS_PER_WORD + 1]; reg_restore_code[FIRST_PSEUDO_REGISTER][MAX_MOVE_MAX / MIN_UNITS_PER_WORD + 1];
/* Set of hard regs currently live (during scan of all insns). */ /* Set of hard regs currently live (during scan of all insns). */
......
/* Definitions of target machine for GNU compiler. /* Definitions of target machine for GNU compiler.
Hitachi H8/300 version generating coff Hitachi H8/300 version generating coff
Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
Contributed by Steve Chamberlain (sac@cygnus.com), Contributed by Steve Chamberlain (sac@cygnus.com),
Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com). Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
...@@ -151,7 +151,7 @@ extern int target_flags; ...@@ -151,7 +151,7 @@ extern int target_flags;
/* Width of a word, in units (bytes). */ /* Width of a word, in units (bytes). */
#define UNITS_PER_WORD (TARGET_H8300H ? 4 : 2) #define UNITS_PER_WORD (TARGET_H8300H ? 4 : 2)
#define MAX_UNITS_PER_WORD 4 #define MIN_UNITS_PER_WORD 2
/* Width in bits of a pointer. /* Width in bits of a pointer.
See also the macro `Pmode' defined below. */ See also the macro `Pmode' defined below. */
......
...@@ -967,7 +967,7 @@ do { \ ...@@ -967,7 +967,7 @@ do { \
/* Width of a word, in units (bytes). */ /* Width of a word, in units (bytes). */
#define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4) #define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4)
#define MAX_UNITS_PER_WORD 8 #define MIN_UNITS_PER_WORD 4
/* For MIPS, width of a floating point register. */ /* For MIPS, width of a floating point register. */
#define UNITS_PER_FPREG (TARGET_FLOAT64 ? 8 : 4) #define UNITS_PER_FPREG (TARGET_FLOAT64 ? 8 : 4)
......
...@@ -309,7 +309,7 @@ extern char *rs6000_cpu_string; ...@@ -309,7 +309,7 @@ extern char *rs6000_cpu_string;
/* Width of a word, in units (bytes). */ /* Width of a word, in units (bytes). */
#define UNITS_PER_WORD (TARGET_POWERPC64 ? 8 : 4) #define UNITS_PER_WORD (TARGET_POWERPC64 ? 8 : 4)
#define MAX_UNITS_PER_WORD 8 #define MIN_UNITS_PER_WORD 4
#define UNITS_PER_FP_WORD 8 #define UNITS_PER_FP_WORD 8
/* Type used for ptrdiff_t, as a string used in a declaration. */ /* Type used for ptrdiff_t, as a string used in a declaration. */
......
/* Definitions of target machine for GNU compiler, for Sun SPARC. /* Definitions of target machine for GNU compiler, for Sun SPARC.
Copyright (C) 1987, 1988, 1989, 1992, 1994 Free Software Foundation, Inc. Copyright (C) 1987, 88, 89, 92, 94, 1995 Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com). Contributed by Michael Tiemann (tiemann@cygnus.com).
64 bit SPARC V9 support by Michael Tiemann, Jim Wilson, and Doug Evans, 64 bit SPARC V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
at Cygnus Support. at Cygnus Support.
...@@ -369,7 +369,7 @@ extern int target_flags; ...@@ -369,7 +369,7 @@ extern int target_flags;
/* Width of a word, in units (bytes). */ /* Width of a word, in units (bytes). */
#define UNITS_PER_WORD (TARGET_V9 ? 8 : 4) #define UNITS_PER_WORD (TARGET_V9 ? 8 : 4)
#define MAX_UNITS_PER_WORD 8 #define MIN_UNITS_PER_WORD 4
/* Now define the sizes of the C data types. */ /* Now define the sizes of the C data types. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment