+2011-04-21 Joseph Myers <joseph@codesourcery.com>
+
+ * config/alpha/alpha.c (struct machine_function): Use rtx, not
+ struct rtx_def *.
+ * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
+ struct rtx_def *.
+ * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
+ * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct
+ rtx_def *.
+ * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
+ rtx_def *.
+ * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
+ definitions where used.
+ * config/microblaze/microblaze.h (struct microblaze_args): Use
+ rtx, not struct rtx_def *.
+ * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
+ rtx_def *.
+ * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def
+ *.
+ * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def
+ *.
+ * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
+ not struct rtx_def *.
+ * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
+ struct rtx_def *.
+ * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
+ rtx_def *.
+ * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def
+ *.
+
2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
* tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
const char *some_ld_name;
/* For TARGET_LD_BUGGY_LDGP. */
- struct rtx_def *gp_save_rtx;
+ rtx gp_save_rtx;
/* For VMS condition handlers. */
bool uses_condition_handler;
#define ASM_OUTPUT_REG_PUSH(FILE, REGNO) fprintf (FILE, "[SP--] = %s;\n", reg_names[REGNO])
#define ASM_OUTPUT_REG_POP(FILE, REGNO) fprintf (FILE, "%s = [SP++];\n", reg_names[REGNO])
-extern struct rtx_def *bfin_cc_rtx, *bfin_rets_rtx;
+extern rtx bfin_cc_rtx, bfin_rets_rtx;
/* This works for GAS and some other assemblers. */
#define SET_ASM_OP ".set "
/* Definitions for GCC. Part of the machine description for CRIS.
- Copyright (C) 1998, 1999, 2000, 2001, 2004, 2005, 2006, 2007, 2009, 2010
+ Copyright (C) 1998, 1999, 2000, 2001, 2004, 2005, 2006, 2007, 2009, 2010,
+ 2011
Free Software Foundation, Inc.
Contributed by Axis Communications.
/* Prototypes for the CRIS port. */
-#if defined(FILE) || defined(stdin) || defined(stdout) || defined(getc) || defined(putc)
-#define STDIO_INCLUDED
-#endif
-
extern bool cris_simple_epilogue (void);
#ifdef RTX_CODE
extern const char *cris_op_str (rtx);
struct cum_arg
{
int nbytes;
- struct rtx_def *libcall;
+ rtx libcall;
};
/* Initialize a variable CUM of type CUMULATIVE_ARGS
int fp_code; /* Mode of FP arguments. */
unsigned int num_adjusts; /* Number of adjustments made. */
/* Adjustments made to args pass in regs. */
- struct rtx_def * adjust[MAX_ARGS_IN_REGISTERS * 2];
+ rtx adjust[MAX_ARGS_IN_REGISTERS * 2];
} CUMULATIVE_ARGS;
/* Initialize a variable CUM of type CUMULATIVE_ARGS
/* Target Prototypes for R8C/M16C/M32C
- Copyright (C) 2005, 2007, 2008, 2010
+ Copyright (C) 2005, 2007, 2008, 2010, 2011
Free Software Foundation, Inc.
Contributed by Red Hat.
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-#define MM enum machine_mode
-#define UINT unsigned int
-
void m32c_conditional_register_usage (void);
int m32c_const_ok_for_constraint_p (HOST_WIDE_INT, char, const char *);
-UINT m32c_dwarf_frame_regnum (int);
+unsigned int m32c_dwarf_frame_regnum (int);
int m32c_eh_return_data_regno (int);
void m32c_emit_epilogue (void);
void m32c_emit_prologue (void);
#ifdef RTX_CODE
-int m32c_cannot_change_mode_class (MM, MM, int);
-int m32c_class_max_nregs (int, MM);
+int m32c_cannot_change_mode_class (enum machine_mode, enum machine_mode, int);
+int m32c_class_max_nregs (int, enum machine_mode);
rtx m32c_eh_return_stackadj_rtx (void);
void m32c_emit_eh_epilogue (rtx);
int m32c_expand_cmpstr (rtx *);
int m32c_expand_setmemhi (rtx *);
int m32c_extra_constraint_p (rtx, char, const char *);
int m32c_extra_constraint_p2 (rtx, char, const char *);
-int m32c_hard_regno_nregs (int, MM);
-int m32c_hard_regno_ok (int, MM);
+int m32c_hard_regno_nregs (int, enum machine_mode);
+int m32c_hard_regno_ok (int, enum machine_mode);
bool m32c_illegal_subreg_p (rtx);
-bool m32c_immd_dbl_mov (rtx *, MM);
+bool m32c_immd_dbl_mov (rtx *, enum machine_mode);
rtx m32c_incoming_return_addr_rtx (void);
-int m32c_legitimize_reload_address (rtx *, MM, int, int, int);
-int m32c_limit_reload_class (MM, int);
-int m32c_modes_tieable_p (MM, MM);
-bool m32c_mov_ok (rtx *, MM);
+int m32c_legitimize_reload_address (rtx *, enum machine_mode, int, int, int);
+int m32c_limit_reload_class (enum machine_mode, int);
+int m32c_modes_tieable_p (enum machine_mode, enum machine_mode);
+bool m32c_mov_ok (rtx *, enum machine_mode);
char * m32c_output_compare (rtx, rtx *);
int m32c_preferred_output_reload_class (rtx, int);
int m32c_preferred_reload_class (rtx, int);
-int m32c_prepare_move (rtx *, MM);
+int m32c_prepare_move (rtx *, enum machine_mode);
int m32c_prepare_shift (rtx *, int, int);
void m32c_print_operand (FILE *, rtx, int);
void m32c_print_operand_address (FILE *, rtx);
enum reg_class m32c_regno_reg_class (int);
rtx m32c_return_addr_rtx (int);
const char *m32c_scc_pattern (rtx *, RTX_CODE);
-int m32c_secondary_reload_class (int, MM, rtx);
-int m32c_split_move (rtx *, MM, int);
+int m32c_secondary_reload_class (int, enum machine_mode, rtx);
+int m32c_split_move (rtx *, enum machine_mode, int);
int m32c_split_psi_p (rtx *);
int current_function_special_page_vector (rtx);
int, int, int);
#endif
-
-#undef MM
-#undef UINT
/* Adjustments made to args pass in regs. */
/* ??? The size is doubled to work around a bug in the code that sets the
adjustments in function_arg. */
- struct rtx_def *adjust[MAX_ARGS_IN_REGISTERS * 2];
+ rtx adjust[MAX_ARGS_IN_REGISTERS * 2];
} CUMULATIVE_ARGS;
#define INIT_CUMULATIVE_ARGS(CUM,FNTYPE,LIBNAME,FNDECL,N_NAMED_ARGS) \
/* Prototypes for pa.c functions used in the md file & elsewhere.
- Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2010
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2010, 2011
Free Software Foundation,
Inc.
/* Declare functions defined in pa.c and used in templates. */
-extern struct rtx_def *return_addr_rtx (int, rtx);
+extern rtx return_addr_rtx (int, rtx);
#ifdef ARGS_SIZE_RTX
/* expr.h defines ARGS_SIZE_RTX and `enum direction' */
/* Function to return the rtx used to save the pic offset table register
across function calls. */
-extern struct rtx_def *hppa_pic_save_rtx (void);
+extern rtx hppa_pic_save_rtx (void);
#define DEFAULT_PCC_STRUCT_RETURN 0
\f
/* Tell emit-rtl.c how to initialize special values on a per-function base. */
-extern struct rtx_def *cc0_reg_rtx;
+extern rtx cc0_reg_rtx;
#define CC_STATUS_MDEP rtx
extern const char *output_movepcrel (rtx, rtx[], enum machine_mode);
extern const char *output_far_jump (rtx, rtx);
-extern struct rtx_def *sfunc_uses_reg (rtx);
+extern rtx sfunc_uses_reg (rtx);
extern int barrier_align (rtx);
extern int sh_loop_align (rtx);
extern int fp_zero_operand (rtx);
extern const char *output_jump_label_table (void);
extern int sh_handle_pragma (int (*)(void), void (*)(int), const char *);
-extern struct rtx_def *get_fpscr_rtx (void);
+extern rtx get_fpscr_rtx (void);
extern int sh_media_register_for_return (void);
extern void sh_expand_prologue (void);
extern void sh_expand_epilogue (bool);
final_prescan_insn ((INSN), (OPVEC), (NOPERANDS))
\f
-extern struct rtx_def *sh_compare_op0;
-extern struct rtx_def *sh_compare_op1;
+extern rtx sh_compare_op0;
+extern rtx sh_compare_op1;
/* Which processor to schedule for. The elements of the enumeration must
match exactly the cpu attribute in the sh.md file. */
-/* Copyright (C) 2006, 2007, 2008, 2009, 2010
+/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it under
extern rtx spu_const (enum machine_mode mode, HOST_WIDE_INT val);
extern rtx spu_const_from_ints (enum machine_mode mode,
int a, int b, int c, int d);
-extern struct rtx_def *spu_float_const (const char *string,
- enum machine_mode mode);
+extern rtx spu_float_const (const char *string,
+ enum machine_mode mode);
extern int immediate_load_p (rtx op, enum machine_mode mode);
extern int logical_immediate_p (rtx op, enum machine_mode mode);
extern int iohl_immediate_p (rtx op, enum machine_mode mode);
-/* Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
}
\f
/* Create a CONST_DOUBLE from a string. */
-struct rtx_def *
+rtx
spu_float_const (const char *string, enum machine_mode mode)
{
REAL_VALUE_TYPE value;