From 1b5f5069484e7b96a0e7f07db7cd014f61af0b4d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 22 Apr 2011 17:47:38 +0100 Subject: [PATCH] bfin-protos.h (Mmode): Don't define. * config/bfin/bfin-protos.h (Mmode): Don't define. Expand definition where used. From-SVN: r172861 --- gcc/ChangeLog | 5 +++++ gcc/config/bfin/bfin-protos.h | 28 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60b6662bd08..a97896299e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-22 Joseph Myers + + * config/bfin/bfin-protos.h (Mmode): Don't define. Expand + definition where used. + 2011-04-22 Jakub Jelinek PR c/48716 diff --git a/gcc/config/bfin/bfin-protos.h b/gcc/config/bfin/bfin-protos.h index 40c641c46c0..7ee826ee9b2 100644 --- a/gcc/config/bfin/bfin-protos.h +++ b/gcc/config/bfin/bfin-protos.h @@ -1,5 +1,6 @@ /* Prototypes for Blackfin functions used in the md file & elsewhere. - Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2008, 2009, 2010, 2011 + Free Software Foundation, Inc. This file is part of GNU CC. @@ -63,8 +64,6 @@ #define ENABLE_WA_05000074 \ (bfin_workarounds & WA_05000074) -#define Mmode enum machine_mode - extern bool function_arg_regno_p (int); extern const char *output_load_immediate (rtx *); @@ -73,14 +72,14 @@ extern char *bfin_asm_long (void); extern char *bfin_asm_short (void); extern int log2constp (unsigned HOST_WIDE_INT); -extern int hard_regno_mode_ok (int, Mmode); +extern int hard_regno_mode_ok (int, enum machine_mode); extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx); extern HOST_WIDE_INT bfin_initial_elimination_offset (int, int); -extern int effective_address_32bit_p (rtx, Mmode); +extern int effective_address_32bit_p (rtx, enum machine_mode); extern int symbolic_reference_mentioned_p (rtx); -extern rtx bfin_gen_compare (rtx, Mmode); -extern bool expand_move (rtx *, Mmode); +extern rtx bfin_gen_compare (rtx, enum machine_mode); +extern bool expand_move (rtx *, enum machine_mode); extern void bfin_expand_call (rtx, rtx, rtx, rtx, int); extern bool bfin_longcall_p (rtx, int); extern bool bfin_dsp_memref_p (rtx); @@ -89,9 +88,11 @@ extern bool bfin_expand_movmem (rtx, rtx, rtx, rtx); extern int bfin_register_move_cost (enum machine_mode, enum reg_class, enum reg_class); extern int bfin_memory_move_cost (enum machine_mode, enum reg_class, int in); -extern enum reg_class secondary_input_reload_class (enum reg_class, Mmode, +extern enum reg_class secondary_input_reload_class (enum reg_class, + enum machine_mode, rtx); -extern enum reg_class secondary_output_reload_class (enum reg_class, Mmode, +extern enum reg_class secondary_output_reload_class (enum reg_class, + enum machine_mode, rtx); extern char *section_asm_op_1 (SECT_ENUM_T); extern char *section_asm_op (SECT_ENUM_T); @@ -99,23 +100,22 @@ extern void print_operand (FILE *, rtx, char); extern void print_address_operand (FILE *, rtx); extern void split_di (rtx [], int, rtx [], rtx []); extern int split_load_immediate (rtx []); -extern void emit_pic_move (rtx *, Mmode); +extern void emit_pic_move (rtx *, enum machine_mode); extern void asm_conditional_branch (rtx, rtx *, int, int); -extern rtx bfin_gen_compare (rtx, Mmode); +extern rtx bfin_gen_compare (rtx, enum machine_mode); extern unsigned bfin_local_alignment (tree, unsigned); extern rtx bfin_va_arg (tree, tree); extern void bfin_expand_prologue (void); extern void bfin_expand_epilogue (int, int, bool); -extern int push_multiple_operation (rtx, Mmode); -extern int pop_multiple_operation (rtx, Mmode); +extern int push_multiple_operation (rtx, enum machine_mode); +extern int pop_multiple_operation (rtx, enum machine_mode); extern void output_push_multiple (rtx, rtx *); extern void output_pop_multiple (rtx, rtx *); extern int bfin_hard_regno_rename_ok (unsigned int, unsigned int); extern rtx bfin_return_addr_rtx (int); extern void bfin_hardware_loop (void); -#undef Mmode #endif -- 2.30.2