Commit d001241c by Jan-Benedict Glaw Committed by John David Anglin

vax.c: (override_options) Remove 'register' keyword.

	* config/vax/vax.c: (override_options) Remove 'register' keyword.
	(split_quadword_operands) Likewise. (rev_cond_name) Likewise.
	(vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
	whitespace.
	* config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
	mostly removal of trailing spaces...
	* config/vax/vax-modes.def: Remove trailing whitespace.

From-SVN: r99701
parent 0b55eafa
2005-05-14 Jan-Benedict Glaw <jbglaw@lug-owl.de> 2005-05-14 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/vax/vax.c: (override_options) Remove 'register' keyword.
(split_quadword_operands) Likewise. (rev_cond_name) Likewise.
(vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
whitespace.
* config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
mostly removal of trailing spaces...
* config/vax/vax-modes.def: Remove trailing whitespace.
* config/vax/elf.h: Update whitespace. * config/vax/elf.h: Update whitespace.
2005-05-14 Richard Guenther <rguenth@gcc.gnu.org> 2005-05-14 Richard Guenther <rguenth@gcc.gnu.org>
......
/* VAX extra machine modes. /* VAX extra machine modes.
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
......
...@@ -112,8 +112,8 @@ override_options (void) ...@@ -112,8 +112,8 @@ override_options (void)
static void static void
vax_output_function_prologue (FILE * file, HOST_WIDE_INT size) vax_output_function_prologue (FILE * file, HOST_WIDE_INT size)
{ {
register int regno; int regno;
register int mask = 0; int mask = 0;
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++) for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
if (regs_ever_live[regno] && !call_used_regs[regno]) if (regs_ever_live[regno] && !call_used_regs[regno])
...@@ -199,9 +199,9 @@ split_quadword_operands (rtx * operands, rtx * low, int n ATTRIBUTE_UNUSED) ...@@ -199,9 +199,9 @@ split_quadword_operands (rtx * operands, rtx * low, int n ATTRIBUTE_UNUSED)
} }
void void
print_operand_address (FILE * file, register rtx addr) print_operand_address (FILE * file, rtx addr)
{ {
register rtx reg1, breg, ireg; rtx reg1, breg, ireg;
rtx offset; rtx offset;
retry: retry:
...@@ -411,9 +411,9 @@ rev_cond_name (rtx op) ...@@ -411,9 +411,9 @@ rev_cond_name (rtx op)
} }
int int
vax_float_literal(register rtx c) vax_float_literal(rtx c)
{ {
register enum machine_mode mode; enum machine_mode mode;
REAL_VALUE_TYPE r, s; REAL_VALUE_TYPE r, s;
int i; int i;
...@@ -457,7 +457,7 @@ vax_float_literal(register rtx c) ...@@ -457,7 +457,7 @@ vax_float_literal(register rtx c)
static int static int
vax_address_cost_1 (register rtx addr) vax_address_cost_1 (rtx addr)
{ {
int reg = 0, indexed = 0, indir = 0, offset = 0, predec = 0; int reg = 0, indexed = 0, indir = 0, offset = 0, predec = 0;
rtx plus_op0 = 0, plus_op1 = 0; rtx plus_op0 = 0, plus_op1 = 0;
......
...@@ -150,8 +150,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -150,8 +150,8 @@ Boston, MA 02111-1307, USA. */
This is ordinarily the length in words of a value of mode MODE This is ordinarily the length in words of a value of mode MODE
but can be less for certain modes in special long registers. but can be less for certain modes in special long registers.
On the VAX, all registers are one word long. */ On the VAX, all registers are one word long. */
#define HARD_REGNO_NREGS(REGNO, MODE) \ #define HARD_REGNO_NREGS(REGNO, MODE) \
((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD) ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
/* Value is 1 if hard register REGNO can hold a value of machine-mode MODE. /* Value is 1 if hard register REGNO can hold a value of machine-mode MODE.
On the VAX, all registers can hold all modes. */ On the VAX, all registers can hold all modes. */
...@@ -210,7 +210,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -210,7 +210,7 @@ Boston, MA 02111-1307, USA. */
For any two classes, it is very desirable that there be another For any two classes, it is very desirable that there be another
class that represents their union. */ class that represents their union. */
/* The VAX has only one kind of registers, so NO_REGS and ALL_REGS /* The VAX has only one kind of registers, so NO_REGS and ALL_REGS
are the only classes. */ are the only classes. */
...@@ -225,8 +225,8 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -225,8 +225,8 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
/* Give names of register classes as strings for dump file. */ /* Give names of register classes as strings for dump file. */
#define REG_CLASS_NAMES \ #define REG_CLASS_NAMES \
{"NO_REGS", "ALL_REGS" } { "NO_REGS", "ALL_REGS" }
/* Define which registers fit in which classes. /* Define which registers fit in which classes.
This is an initializer for a vector of HARD_REG_SET This is an initializer for a vector of HARD_REG_SET
...@@ -264,7 +264,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -264,7 +264,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
'N' is a value between 0 and 65535 (inclusive) 'N' is a value between 0 and 65535 (inclusive)
`O' is a value between -63 and -1 (inclusive) */ `O' is a value between -63 and -1 (inclusive) */
#define CONST_OK_FOR_LETTER_P(VALUE, C) \ #define CONST_OK_FOR_LETTER_P(VALUE, C) \
( (C) == 'I' ? (VALUE) == 0 \ ( (C) == 'I' ? (VALUE) == 0 \
: (C) == 'J' ? 0 <= (VALUE) && (VALUE) < 64 \ : (C) == 'J' ? 0 <= (VALUE) && (VALUE) < 64 \
: (C) == 'O' ? -63 <= (VALUE) && (VALUE) < 0 \ : (C) == 'O' ? -63 <= (VALUE) && (VALUE) < 0 \
...@@ -275,11 +275,11 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -275,11 +275,11 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
: 0) : 0)
/* Similar, but for floating constants, and defining letters G and H. /* Similar, but for floating constants, and defining letters G and H.
Here VALUE is the CONST_DOUBLE rtx itself. Here VALUE is the CONST_DOUBLE rtx itself.
`G' is a floating-point zero. */ `G' is a floating-point zero. */
#define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C) \ #define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C) \
((C) == 'G' ? ((VALUE) == CONST0_RTX (DFmode) \ ((C) == 'G' ? ((VALUE) == CONST0_RTX (DFmode) \
|| (VALUE) == CONST0_RTX (SFmode)) \ || (VALUE) == CONST0_RTX (SFmode)) \
: 0) : 0)
...@@ -289,7 +289,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -289,7 +289,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
For the VAX, `Q' means that OP is a MEM that does not have a mode-dependent For the VAX, `Q' means that OP is a MEM that does not have a mode-dependent
address. */ address. */
#define EXTRA_CONSTRAINT(OP, C) \ #define EXTRA_CONSTRAINT(OP, C) \
((C) == 'Q' \ ((C) == 'Q' \
? GET_CODE (OP) == MEM && ! mode_dependent_address_p (XEXP (OP, 0)) \ ? GET_CODE (OP) == MEM && ! mode_dependent_address_p (XEXP (OP, 0)) \
: 0) : 0)
...@@ -348,23 +348,23 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -348,23 +348,23 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
On the VAX, the RET insn pops a maximum of 255 args for any function. */ On the VAX, the RET insn pops a maximum of 255 args for any function. */
#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) \ #define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) \
((SIZE) > 255*4 ? 0 : (SIZE)) ((SIZE) > 255 * 4 ? 0 : (SIZE))
/* Define how to find the value returned by a function. /* Define how to find the value returned by a function.
VALTYPE is the data type of the value (as a tree). VALTYPE is the data type of the value (as a tree).
If the precise function being called is known, FUNC is its FUNCTION_DECL; If the precise function being called is known, FUNC is its FUNCTION_DECL;
otherwise, FUNC is 0. */ otherwise, FUNC is 0. */
/* On the VAX the return value is in R0 regardless. */ /* On the VAX the return value is in R0 regardless. */
#define FUNCTION_VALUE(VALTYPE, FUNC) \ #define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx_REG (TYPE_MODE (VALTYPE), 0) gen_rtx_REG (TYPE_MODE (VALTYPE), 0)
/* Define how to find the value returned by a library function /* Define how to find the value returned by a library function
assuming the value has mode MODE. */ assuming the value has mode MODE. */
/* On the VAX the return value is in R0 regardless. */ /* On the VAX the return value is in R0 regardless. */
#define LIBCALL_VALUE(MODE) gen_rtx_REG (MODE, 0) #define LIBCALL_VALUE(MODE) gen_rtx_REG (MODE, 0)
...@@ -408,9 +408,9 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -408,9 +408,9 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
(TYPE is null for libcalls where that information may not be available.) */ (TYPE is null for libcalls where that information may not be available.) */
#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \ #define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \
((CUM) += ((MODE) != BLKmode \ ((CUM) += ((MODE) != BLKmode \
? (GET_MODE_SIZE (MODE) + 3) & ~3 \ ? (GET_MODE_SIZE (MODE) + 3) & ~3 \
: (int_size_in_bytes (TYPE) + 3) & ~3)) : (int_size_in_bytes (TYPE) + 3) & ~3))
/* Define where to put the arguments to a function. /* Define where to put the arguments to a function.
Value is zero to push the argument on the stack, Value is zero to push the argument on the stack,
...@@ -425,7 +425,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -425,7 +425,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
NAMED is nonzero if this argument is a named parameter NAMED is nonzero if this argument is a named parameter
(otherwise it is an extra parameter matching an ellipsis). */ (otherwise it is an extra parameter matching an ellipsis). */
/* On the VAX all args are pushed. */ /* On the VAX all args are pushed. */
#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) 0 #define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) 0
...@@ -510,9 +510,9 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -510,9 +510,9 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
FRAMEADDR is already the frame pointer of the COUNT frame, so we FRAMEADDR is already the frame pointer of the COUNT frame, so we
can ignore COUNT. */ can ignore COUNT. */
#define RETURN_ADDR_RTX(COUNT, FRAME) \ #define RETURN_ADDR_RTX(COUNT, FRAME) \
((COUNT == 0) \ ((COUNT == 0) \
? gen_rtx_MEM (Pmode, plus_constant (FRAME, RETURN_ADDRESS_OFFSET)) \ ? gen_rtx_MEM (Pmode, plus_constant (FRAME, RETURN_ADDRESS_OFFSET)) \
: (rtx) 0) : (rtx) 0)
...@@ -530,10 +530,10 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -530,10 +530,10 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
Since they use reg_renumber, they are safe only once reg_renumber Since they use reg_renumber, they are safe only once reg_renumber
has been allocated, which happens in local-alloc.c. */ has been allocated, which happens in local-alloc.c. */
#define REGNO_OK_FOR_INDEX_P(regno) \ #define REGNO_OK_FOR_INDEX_P(regno) \
((regno) < FIRST_PSEUDO_REGISTER || reg_renumber[regno] >= 0) ((regno) < FIRST_PSEUDO_REGISTER || reg_renumber[regno] >= 0)
#define REGNO_OK_FOR_BASE_P(regno) \ #define REGNO_OK_FOR_BASE_P(regno) \
((regno) < FIRST_PSEUDO_REGISTER || reg_renumber[regno] >= 0) ((regno) < FIRST_PSEUDO_REGISTER || reg_renumber[regno] >= 0)
/* Maximum number of registers that can appear in a valid memory address. */ /* Maximum number of registers that can appear in a valid memory address. */
...@@ -574,7 +574,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -574,7 +574,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression /* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
that is a valid memory address for an instruction. */ that is a valid memory address for an instruction. */
#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \ #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \
{ if (legitimate_address_p ((MODE), (X), 0)) goto ADDR; } { if (legitimate_address_p ((MODE), (X), 0)) goto ADDR; }
#else #else
...@@ -587,14 +587,14 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -587,14 +587,14 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression /* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
that is a valid memory address for an instruction. */ that is a valid memory address for an instruction. */
#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \ #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \
{ if (legitimate_address_p ((MODE), (X), 1)) goto ADDR; } { if (legitimate_address_p ((MODE), (X), 1)) goto ADDR; }
#endif #endif
/* Go to LABEL if ADDR (a legitimate address expression) /* Go to LABEL if ADDR (a legitimate address expression)
has an effect that depends on the machine mode it is used for. */ has an effect that depends on the machine mode it is used for. */
#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR, LABEL) \ #define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR, LABEL) \
{ if (vax_mode_dependent_address_p (ADDR)) goto LABEL; } { if (vax_mode_dependent_address_p (ADDR)) goto LABEL; }
/* Specify the machine mode that this machine uses /* Specify the machine mode that this machine uses
for the index in the tablejump instruction. */ for the index in the tablejump instruction. */
...@@ -665,13 +665,14 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -665,13 +665,14 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
after execution of an instruction whose pattern is EXP. after execution of an instruction whose pattern is EXP.
Do not alter them if the instruction would not alter the cc's. */ Do not alter them if the instruction would not alter the cc's. */
#define NOTICE_UPDATE_CC(EXP, INSN) \ #define NOTICE_UPDATE_CC(EXP, INSN) \
vax_notice_update_cc ((EXP), (INSN)) vax_notice_update_cc ((EXP), (INSN))
#define OUTPUT_JUMP(NORMAL, FLOAT, NO_OV) \ #define OUTPUT_JUMP(NORMAL, FLOAT, NO_OV) \
{ if (cc_status.flags & CC_NO_OVERFLOW) \ { if (cc_status.flags & CC_NO_OVERFLOW) \
return NO_OV; \ return NO_OV; \
return NORMAL; } return NORMAL; \
}
/* Control the assembler format that we output. */ /* Control the assembler format that we output. */
...@@ -704,9 +705,9 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -704,9 +705,9 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
The register names will be prefixed by REGISTER_PREFIX, if any. */ The register names will be prefixed by REGISTER_PREFIX, if any. */
#define REGISTER_PREFIX "" #define REGISTER_PREFIX ""
#define REGISTER_NAMES \ #define REGISTER_NAMES \
{"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", \ { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
"r9", "r10", "r11", "ap", "fp", "sp", "pc"} "r8", "r9", "r10", "r11", "ap", "fp", "sp", "pc", }
/* This is BSD, so it wants DBX format. */ /* This is BSD, so it wants DBX format. */
...@@ -760,8 +761,8 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -760,8 +761,8 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
/* This is how to output an insn to pop a register from the stack. /* This is how to output an insn to pop a register from the stack.
It need not be very fast code. */ It need not be very fast code. */
#define ASM_OUTPUT_REG_POP(FILE,REGNO) \ #define ASM_OUTPUT_REG_POP(FILE,REGNO) \
fprintf (FILE, "\tmovl (%s)+,%s\n", reg_names[STACK_POINTER_REGNUM], \ fprintf (FILE, "\tmovl (%s)+,%s\n", reg_names[STACK_POINTER_REGNUM], \
reg_names[REGNO]) reg_names[REGNO])
/* This is how to output an element of a case-vector that is absolute. /* This is how to output an element of a case-vector that is absolute.
...@@ -811,26 +812,26 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -811,26 +812,26 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
/* This says how to output an assembler line /* This says how to output an assembler line
to define a global common symbol. */ to define a global common symbol. */
#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
( fputs (".comm ", (FILE)), \ ( fputs (".comm ", (FILE)), \
assemble_name ((FILE), (NAME)), \ assemble_name ((FILE), (NAME)), \
fprintf ((FILE), ",%u\n", (int)(ROUNDED))) fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
/* This says how to output an assembler line /* This says how to output an assembler line
to define a local common symbol. */ to define a local common symbol. */
#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
( fputs (".lcomm ", (FILE)), \ ( fputs (".lcomm ", (FILE)), \
assemble_name ((FILE), (NAME)), \ assemble_name ((FILE), (NAME)), \
fprintf ((FILE), ",%u\n", (int)(ROUNDED))) fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
/* Store in OUTPUT a string (made with alloca) containing /* Store in OUTPUT a string (made with alloca) containing
an assembler-name for a local static variable named NAME. an assembler-name for a local static variable named NAME.
LABELNO is an integer which is different for each call. */ LABELNO is an integer which is different for each call. */
#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \ #define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 10), \ ( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 10), \
sprintf ((OUTPUT), "%s.%d", (NAME), (LABELNO))) sprintf ((OUTPUT), "%s.%d", (NAME), (LABELNO)))
/* Print an instruction operand X on file FILE. /* Print an instruction operand X on file FILE.
CODE is the code from the %-spec that requested printing this operand; CODE is the code from the %-spec that requested printing this operand;
...@@ -865,7 +866,7 @@ VAX operand formatting codes: ...@@ -865,7 +866,7 @@ VAX operand formatting codes:
#define PRINT_OPERAND_PUNCT_VALID_P(CODE) \ #define PRINT_OPERAND_PUNCT_VALID_P(CODE) \
((CODE) == '#' || (CODE) == '|') ((CODE) == '#' || (CODE) == '|')
#define PRINT_OPERAND(FILE, X, CODE) \ #define PRINT_OPERAND(FILE, X, CODE) \
{ if (CODE == '#') fputc (ASM_DOUBLE_CHAR, FILE); \ { if (CODE == '#') fputc (ASM_DOUBLE_CHAR, FILE); \
else if (CODE == '|') \ else if (CODE == '|') \
fputs (REGISTER_PREFIX, FILE); \ fputs (REGISTER_PREFIX, FILE); \
...@@ -910,9 +911,10 @@ VAX operand formatting codes: ...@@ -910,9 +911,10 @@ VAX operand formatting codes:
This uses a function in output-vax.c. */ This uses a function in output-vax.c. */
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \ #define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
print_operand_address (FILE, ADDR) print_operand_address (FILE, ADDR)
/* This is a blatent lie. However, it's good enough, since we don't /* This is a blatent lie. However, it's good enough, since we don't
actually have any code whatsoever for which this isn't overridden actually have any code whatsoever for which this isn't overridden
by the proper FDE definition. */ by the proper FDE definition. */
#define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, PC_REGNUM) #define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, PC_REGNUM)
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