From d2888f1dde5f6b84a0d02c9fe4cf52b1cb88cf8f Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 14 Feb 2004 12:45:52 +0000 Subject: [PATCH] * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE) (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC) (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS) (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete. (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI]. * config/mips/mips.c: Fix some overly-long lines. (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete. (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling. From-SVN: r77800 --- gcc/ChangeLog | 11 +++++++++ gcc/config/mips/mips.c | 50 ++++++++++++-------------------------- gcc/config/mips/mips.h | 54 ------------------------------------------ 3 files changed, 26 insertions(+), 89 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac157bb68759..3e28e258ce66 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2004-02-14 Richard Sandiford + + * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE) + (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC) + (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS) + (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete. + (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI]. + * config/mips/mips.c: Fix some overly-long lines. + (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete. + (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling. + 2004-02-13 Rainer Orth * configure.ac: Search for as, ld below libexec/gcc. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 40b80148fc02..0a69022d222a 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -73,11 +73,6 @@ enum internal_test { ITEST_MAX }; -/* Return true if it is likely that the given mode will be accessed - using only a single instruction. */ -#define SINGLE_WORD_MODE_P(MODE) \ - ((MODE) != BLKmode && GET_MODE_SIZE (MODE) <= UNITS_PER_WORD) - /* True if X is an unspec wrapper around a SYMBOL_REF or LABEL_REF. */ #define UNSPEC_ADDRESS_P(X) \ (GET_CODE (X) == UNSPEC \ @@ -2999,7 +2994,8 @@ gen_int_relational (enum rtx_code test_code, rtx result, rtx cmp0, else { reg = (invert || eqne_p) ? gen_reg_rtx (mode) : result; - convert_move (reg, gen_rtx_fmt_ee (p_info->test_code, mode, cmp0, cmp1), 0); + convert_move (reg, gen_rtx_fmt_ee (p_info->test_code, + mode, cmp0, cmp1), 0); } if (test == ITEST_NE) @@ -3131,7 +3127,8 @@ gen_conditional_branch (rtx *operands, enum rtx_code test_code) break; default: - fatal_insn ("bad test", gen_rtx_fmt_ee (test_code, VOIDmode, cmp0, cmp1)); + fatal_insn ("bad test", + gen_rtx_fmt_ee (test_code, VOIDmode, cmp0, cmp1)); } /* Generate the branch. */ @@ -3145,12 +3142,12 @@ gen_conditional_branch (rtx *operands, enum rtx_code test_code) label1 = pc_rtx; } - emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, - gen_rtx_IF_THEN_ELSE (VOIDmode, - gen_rtx_fmt_ee (test_code, - mode, - cmp0, cmp1), - label1, label2))); + emit_jump_insn + (gen_rtx_SET (VOIDmode, pc_rtx, + gen_rtx_IF_THEN_ELSE (VOIDmode, + gen_rtx_fmt_ee (test_code, mode, + cmp0, cmp1), + label1, label2))); } /* Emit the common code for conditional moves. OPERANDS is the array @@ -3233,9 +3230,10 @@ gen_conditional_move (rtx *operands) emit_insn (gen_rtx_SET (op_mode, operands[0], gen_rtx_IF_THEN_ELSE (op_mode, - gen_rtx_fmt_ee (move_code, VOIDmode, + gen_rtx_fmt_ee (move_code, + VOIDmode, cmp_reg, - CONST0_RTX (SImode)), + const0_rtx), operands[2], operands[3]))); } @@ -3608,23 +3606,6 @@ init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype, static CUMULATIVE_ARGS zero_cum; tree param, next_param; - if (TARGET_DEBUG_E_MODE) - { - fprintf (stderr, - "\ninit_cumulative_args, fntype = 0x%.8lx", (long)fntype); - - if (!fntype) - fputc ('\n', stderr); - - else - { - tree ret_type = TREE_TYPE (fntype); - fprintf (stderr, ", fntype code = %s, ret code = %s\n", - tree_code_name[(int)TREE_CODE (fntype)], - tree_code_name[(int)TREE_CODE (ret_type)]); - } - } - *cum = zero_cum; cum->prototype = (fntype && TYPE_ARG_TYPES (fntype)); @@ -6917,7 +6898,6 @@ mips_expand_prologue (void) and regs. */ #define RA_MASK BITMASK_HIGH /* 1 << 31 */ -#define PIC_OFFSET_TABLE_MASK (1 << (PIC_OFFSET_TABLE_REGNUM - GP_REG_FIRST)) static void mips_output_function_epilogue (FILE *file ATTRIBUTE_UNUSED, @@ -7099,10 +7079,10 @@ mips_expand_epilogue (int sibcall_p) /* The mips16 loads the return address into $7, not $31. */ if (TARGET_MIPS16 && (cfun->machine->frame.mask & RA_MASK) != 0) emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, - GP_REG_FIRST + 7))); + GP_REG_FIRST + 7))); else emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, - GP_REG_FIRST + 31))); + GP_REG_FIRST + 31))); } } diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 708b2e2eec0f..e404d3dc1a37 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -173,14 +173,9 @@ extern const struct mips_cpu_info *mips_tune_info; /* Debug switches, not documented */ #define MASK_DEBUG 0 /* unused */ -#define MASK_DEBUG_A 0 /* don't allow