Commit 1f92da87 by Nick Clifton

m32r.c: Convert to ISO-C

* config/m32r/m32r.c: Convert to ISO-C
* doc/invoke.texi: Replace Mitsubishi with Renesas.
* config/m32r/m32r.h: Ditto.
* config/m32r/m32r.c: Ditto.
* config/m32r/m32r.md: Ditto.

From-SVN: r74533
parent 645112dd
2003-12-12 Nick Clifton <nickc@redhat.com>
* config/m32r/m32r.c: Convert to ISO-C
2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* doc/invoke.texi: Replace Mitsubishi with Renesas.
* config/m32r/m32r.h: Ditto.
* config/m32r/m32r.c: Ditto.
* config/m32r/m32r.md: Ditto.
2003-12-11 Steven Bosscher <steven@gcc.gnu.org> 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
* basic-block.h (BLOCK_HEAD, BLOCK_END): Remove. * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
......
/* Subroutines used for code generation on the Mitsubishi M32R cpu. /* Subroutines used for code generation on the Renesas M32R cpu.
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
GCC is free software; you can redistribute it and/or modify GCC is free software; you can redistribute it and/or modify it
it under the terms of the GNU General Public License as published by under the terms of the GNU General Public License as published
the Free Software Foundation; either version 2, or (at your option) by the Free Software Foundation; either version 2, or (at your
any later version. option) any later version.
GCC is distributed in the hope that it will be useful, GCC is distributed in the hope that it will be useful, but WITHOUT
but WITHOUT ANY WARRANTY; without even the implied warranty of ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
GNU General Public License for more details. License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
...@@ -92,43 +92,43 @@ static void init_idents (void); ...@@ -92,43 +92,43 @@ static void init_idents (void);
static bool m32r_rtx_costs (rtx, int, int, int *); static bool m32r_rtx_costs (rtx, int, int, int *);
/* Initialize the GCC target structure. */ /* Initialize the GCC target structure. */
#undef TARGET_ATTRIBUTE_TABLE #undef TARGET_ATTRIBUTE_TABLE
#define TARGET_ATTRIBUTE_TABLE m32r_attribute_table #define TARGET_ATTRIBUTE_TABLE m32r_attribute_table
#undef TARGET_ASM_ALIGNED_HI_OP #undef TARGET_ASM_ALIGNED_HI_OP
#define TARGET_ASM_ALIGNED_HI_OP "\t.hword\t" #define TARGET_ASM_ALIGNED_HI_OP "\t.hword\t"
#undef TARGET_ASM_ALIGNED_SI_OP #undef TARGET_ASM_ALIGNED_SI_OP
#define TARGET_ASM_ALIGNED_SI_OP "\t.word\t" #define TARGET_ASM_ALIGNED_SI_OP "\t.word\t"
#undef TARGET_ASM_FUNCTION_PROLOGUE #undef TARGET_ASM_FUNCTION_PROLOGUE
#define TARGET_ASM_FUNCTION_PROLOGUE m32r_output_function_prologue #define TARGET_ASM_FUNCTION_PROLOGUE m32r_output_function_prologue
#undef TARGET_ASM_FUNCTION_EPILOGUE #undef TARGET_ASM_FUNCTION_EPILOGUE
#define TARGET_ASM_FUNCTION_EPILOGUE m32r_output_function_epilogue #define TARGET_ASM_FUNCTION_EPILOGUE m32r_output_function_epilogue
#undef TARGET_ASM_FILE_START #undef TARGET_ASM_FILE_START
#define TARGET_ASM_FILE_START m32r_file_start #define TARGET_ASM_FILE_START m32r_file_start
#undef TARGET_SCHED_ADJUST_COST #undef TARGET_SCHED_ADJUST_COST
#define TARGET_SCHED_ADJUST_COST m32r_adjust_cost #define TARGET_SCHED_ADJUST_COST m32r_adjust_cost
#undef TARGET_SCHED_ADJUST_PRIORITY #undef TARGET_SCHED_ADJUST_PRIORITY
#define TARGET_SCHED_ADJUST_PRIORITY m32r_adjust_priority #define TARGET_SCHED_ADJUST_PRIORITY m32r_adjust_priority
#undef TARGET_SCHED_ISSUE_RATE #undef TARGET_SCHED_ISSUE_RATE
#define TARGET_SCHED_ISSUE_RATE m32r_issue_rate #define TARGET_SCHED_ISSUE_RATE m32r_issue_rate
#undef TARGET_SCHED_VARIABLE_ISSUE #undef TARGET_SCHED_VARIABLE_ISSUE
#define TARGET_SCHED_VARIABLE_ISSUE m32r_variable_issue #define TARGET_SCHED_VARIABLE_ISSUE m32r_variable_issue
#undef TARGET_SCHED_INIT #undef TARGET_SCHED_INIT
#define TARGET_SCHED_INIT m32r_sched_init #define TARGET_SCHED_INIT m32r_sched_init
#undef TARGET_SCHED_REORDER #undef TARGET_SCHED_REORDER
#define TARGET_SCHED_REORDER m32r_sched_reorder #define TARGET_SCHED_REORDER m32r_sched_reorder
#undef TARGET_ENCODE_SECTION_INFO #undef TARGET_ENCODE_SECTION_INFO
#define TARGET_ENCODE_SECTION_INFO m32r_encode_section_info #define TARGET_ENCODE_SECTION_INFO m32r_encode_section_info
#undef TARGET_IN_SMALL_DATA_P #undef TARGET_IN_SMALL_DATA_P
#define TARGET_IN_SMALL_DATA_P m32r_in_small_data_p #define TARGET_IN_SMALL_DATA_P m32r_in_small_data_p
#undef TARGET_RTX_COSTS #undef TARGET_RTX_COSTS
#define TARGET_RTX_COSTS m32r_rtx_costs #define TARGET_RTX_COSTS m32r_rtx_costs
#undef TARGET_ADDRESS_COST #undef TARGET_ADDRESS_COST
#define TARGET_ADDRESS_COST hook_int_rtx_0 #define TARGET_ADDRESS_COST hook_int_rtx_0
struct gcc_target targetm = TARGET_INITIALIZER; struct gcc_target targetm = TARGET_INITIALIZER;
...@@ -136,7 +136,7 @@ struct gcc_target targetm = TARGET_INITIALIZER; ...@@ -136,7 +136,7 @@ struct gcc_target targetm = TARGET_INITIALIZER;
/* Called by OVERRIDE_OPTIONS to initialize various things. */ /* Called by OVERRIDE_OPTIONS to initialize various things. */
void void
m32r_init () m32r_init (void)
{ {
init_reg_tables (); init_reg_tables ();
...@@ -213,7 +213,7 @@ unsigned int m32r_mode_class [NUM_MACHINE_MODES]; ...@@ -213,7 +213,7 @@ unsigned int m32r_mode_class [NUM_MACHINE_MODES];
enum reg_class m32r_regno_reg_class[FIRST_PSEUDO_REGISTER]; enum reg_class m32r_regno_reg_class[FIRST_PSEUDO_REGISTER];
static void static void
init_reg_tables () init_reg_tables (void)
{ {
int i; int i;
...@@ -278,8 +278,7 @@ init_reg_tables () ...@@ -278,8 +278,7 @@ init_reg_tables ()
medium: addresses use 32 bits, use bl to make calls medium: addresses use 32 bits, use bl to make calls
large: addresses use 32 bits, use seth/add3/jl to make calls large: addresses use 32 bits, use seth/add3/jl to make calls
Grep for MODEL in m32r.h for more info. Grep for MODEL in m32r.h for more info. */
*/
static tree small_ident1; static tree small_ident1;
static tree small_ident2; static tree small_ident2;
...@@ -289,7 +288,7 @@ static tree large_ident1; ...@@ -289,7 +288,7 @@ static tree large_ident1;
static tree large_ident2; static tree large_ident2;
static void static void
init_idents () init_idents (void)
{ {
if (small_ident1 == 0) if (small_ident1 == 0)
{ {
...@@ -314,12 +313,9 @@ const struct attribute_spec m32r_attribute_table[] = ...@@ -314,12 +313,9 @@ const struct attribute_spec m32r_attribute_table[] =
/* Handle an "model" attribute; arguments as in /* Handle an "model" attribute; arguments as in
struct attribute_spec.handler. */ struct attribute_spec.handler. */
static tree static tree
m32r_handle_model_attribute (node, name, args, flags, no_add_attrs) m32r_handle_model_attribute (tree *node ATTRIBUTE_UNUSED, tree name,
tree *node ATTRIBUTE_UNUSED; tree args, int flags ATTRIBUTE_UNUSED,
tree name; bool *no_add_attrs)
tree args;
int flags ATTRIBUTE_UNUSED;
bool *no_add_attrs;
{ {
tree arg; tree arg;
...@@ -351,10 +347,7 @@ m32r_handle_model_attribute (node, name, args, flags, no_add_attrs) ...@@ -351,10 +347,7 @@ m32r_handle_model_attribute (node, name, args, flags, no_add_attrs)
*/ */
static void static void
m32r_encode_section_info (decl, rtl, first) m32r_encode_section_info (tree decl, rtx rtl, int first)
tree decl;
rtx rtl;
int first;
{ {
int extra_flags = 0; int extra_flags = 0;
tree model_attr; tree model_attr;
...@@ -411,8 +404,7 @@ m32r_encode_section_info (decl, rtl, first) ...@@ -411,8 +404,7 @@ m32r_encode_section_info (decl, rtl, first)
the object doesn't fit the linker will give an error. */ the object doesn't fit the linker will give an error. */
static bool static bool
m32r_in_small_data_p (decl) m32r_in_small_data_p (tree decl)
tree decl;
{ {
tree section; tree section;
...@@ -446,7 +438,7 @@ m32r_in_small_data_p (decl) ...@@ -446,7 +438,7 @@ m32r_in_small_data_p (decl)
/* Do anything needed before RTL is emitted for each function. */ /* Do anything needed before RTL is emitted for each function. */
void void
m32r_init_expanders () m32r_init_expanders (void)
{ {
/* ??? At one point there was code here. The function is left in /* ??? At one point there was code here. The function is left in
to make it easy to experiment. */ to make it easy to experiment. */
...@@ -455,9 +447,7 @@ m32r_init_expanders () ...@@ -455,9 +447,7 @@ m32r_init_expanders ()
/* Acceptable arguments to the call insn. */ /* Acceptable arguments to the call insn. */
int int
call_address_operand (op, mode) call_address_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
return symbolic_operand (op, mode); return symbolic_operand (op, mode);
...@@ -466,9 +456,7 @@ call_address_operand (op, mode) ...@@ -466,9 +456,7 @@ call_address_operand (op, mode)
} }
int int
call_operand (op, mode) call_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) != MEM) if (GET_CODE (op) != MEM)
return 0; return 0;
...@@ -479,9 +467,7 @@ call_operand (op, mode) ...@@ -479,9 +467,7 @@ call_operand (op, mode)
/* Returns 1 if OP is a symbol reference. */ /* Returns 1 if OP is a symbol reference. */
int int
symbolic_operand (op, mode) symbolic_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -498,9 +484,7 @@ symbolic_operand (op, mode) ...@@ -498,9 +484,7 @@ symbolic_operand (op, mode)
/* Return 1 if OP is a reference to an object in .sdata/.sbss. */ /* Return 1 if OP is a reference to an object in .sdata/.sbss. */
int int
small_data_operand (op, mode) small_data_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (! TARGET_SDATA_USE) if (! TARGET_SDATA_USE)
return 0; return 0;
...@@ -521,9 +505,7 @@ small_data_operand (op, mode) ...@@ -521,9 +505,7 @@ small_data_operand (op, mode)
/* Return 1 if OP is a symbol that can use 24 bit addressing. */ /* Return 1 if OP is a symbol that can use 24 bit addressing. */
int int
addr24_operand (op, mode) addr24_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
rtx sym; rtx sym;
...@@ -555,9 +537,7 @@ addr24_operand (op, mode) ...@@ -555,9 +537,7 @@ addr24_operand (op, mode)
/* Return 1 if OP is a symbol that needs 32 bit addressing. */ /* Return 1 if OP is a symbol that needs 32 bit addressing. */
int int
addr32_operand (op, mode) addr32_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
rtx sym; rtx sym;
...@@ -581,9 +561,7 @@ addr32_operand (op, mode) ...@@ -581,9 +561,7 @@ addr32_operand (op, mode)
/* Return 1 if OP is a function that can be called with the `bl' insn. */ /* Return 1 if OP is a function that can be called with the `bl' insn. */
int int
call26_operand (op, mode) call26_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) == SYMBOL_REF) if (GET_CODE (op) == SYMBOL_REF)
return SYMBOL_REF_MODEL (op) != M32R_MODEL_LARGE; return SYMBOL_REF_MODEL (op) != M32R_MODEL_LARGE;
...@@ -594,9 +572,7 @@ call26_operand (op, mode) ...@@ -594,9 +572,7 @@ call26_operand (op, mode)
/* Returns 1 if OP is an acceptable operand for seth/add3. */ /* Returns 1 if OP is an acceptable operand for seth/add3. */
int int
seth_add3_operand (op, mode) seth_add3_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) == SYMBOL_REF if (GET_CODE (op) == SYMBOL_REF
|| GET_CODE (op) == LABEL_REF) || GET_CODE (op) == LABEL_REF)
...@@ -615,9 +591,7 @@ seth_add3_operand (op, mode) ...@@ -615,9 +591,7 @@ seth_add3_operand (op, mode)
/* Return true if OP is a signed 8 bit immediate value. */ /* Return true if OP is a signed 8 bit immediate value. */
int int
int8_operand (op, mode) int8_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != CONST_INT) if (GET_CODE (op) != CONST_INT)
return 0; return 0;
...@@ -628,9 +602,7 @@ int8_operand (op, mode) ...@@ -628,9 +602,7 @@ int8_operand (op, mode)
useful in comparisons. */ useful in comparisons. */
int int
cmp_int16_operand (op, mode) cmp_int16_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != CONST_INT) if (GET_CODE (op) != CONST_INT)
return 0; return 0;
...@@ -640,9 +612,7 @@ cmp_int16_operand (op, mode) ...@@ -640,9 +612,7 @@ cmp_int16_operand (op, mode)
/* Return true if OP is an unsigned 16 bit immediate value. */ /* Return true if OP is an unsigned 16 bit immediate value. */
int int
uint16_operand (op, mode) uint16_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != CONST_INT) if (GET_CODE (op) != CONST_INT)
return 0; return 0;
...@@ -652,9 +622,7 @@ uint16_operand (op, mode) ...@@ -652,9 +622,7 @@ uint16_operand (op, mode)
/* Return true if OP is a register or signed 16 bit value. */ /* Return true if OP is a register or signed 16 bit value. */
int int
reg_or_int16_operand (op, mode) reg_or_int16_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG) if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG)
return register_operand (op, mode); return register_operand (op, mode);
...@@ -666,9 +634,7 @@ reg_or_int16_operand (op, mode) ...@@ -666,9 +634,7 @@ reg_or_int16_operand (op, mode)
/* Return true if OP is a register or an unsigned 16 bit value. */ /* Return true if OP is a register or an unsigned 16 bit value. */
int int
reg_or_uint16_operand (op, mode) reg_or_uint16_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG) if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG)
return register_operand (op, mode); return register_operand (op, mode);
...@@ -683,9 +649,7 @@ reg_or_uint16_operand (op, mode) ...@@ -683,9 +649,7 @@ reg_or_uint16_operand (op, mode)
because that is special cased. */ because that is special cased. */
int int
reg_or_eq_int16_operand (op, mode) reg_or_eq_int16_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
HOST_WIDE_INT value; HOST_WIDE_INT value;
...@@ -702,9 +666,7 @@ reg_or_eq_int16_operand (op, mode) ...@@ -702,9 +666,7 @@ reg_or_eq_int16_operand (op, mode)
/* Return true if OP is a register or signed 16 bit value for compares. */ /* Return true if OP is a register or signed 16 bit value for compares. */
int int
reg_or_cmp_int16_operand (op, mode) reg_or_cmp_int16_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG) if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG)
return register_operand (op, mode); return register_operand (op, mode);
...@@ -716,9 +678,7 @@ reg_or_cmp_int16_operand (op, mode) ...@@ -716,9 +678,7 @@ reg_or_cmp_int16_operand (op, mode)
/* Return true if OP is a register or the constant 0. */ /* Return true if OP is a register or the constant 0. */
int int
reg_or_zero_operand (op, mode) reg_or_zero_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG) if (GET_CODE (op) == REG || GET_CODE (op) == SUBREG)
return register_operand (op, mode); return register_operand (op, mode);
...@@ -732,9 +692,7 @@ reg_or_zero_operand (op, mode) ...@@ -732,9 +692,7 @@ reg_or_zero_operand (op, mode)
/* Return true if OP is a const_int requiring two instructions to load. */ /* Return true if OP is a const_int requiring two instructions to load. */
int int
two_insn_const_operand (op, mode) two_insn_const_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != CONST_INT) if (GET_CODE (op) != CONST_INT)
return 0; return 0;
...@@ -749,9 +707,7 @@ two_insn_const_operand (op, mode) ...@@ -749,9 +707,7 @@ two_insn_const_operand (op, mode)
move source. */ move source. */
int int
move_src_operand (op, mode) move_src_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -809,9 +765,7 @@ move_src_operand (op, mode) ...@@ -809,9 +765,7 @@ move_src_operand (op, mode)
move source. */ move source. */
int int
move_double_src_operand (op, mode) move_double_src_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -841,9 +795,7 @@ move_double_src_operand (op, mode) ...@@ -841,9 +795,7 @@ move_double_src_operand (op, mode)
/* Return true if OP is an acceptable argument for a move destination. */ /* Return true if OP is an acceptable argument for a move destination. */
int int
move_dest_operand (op, mode) move_dest_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -870,8 +822,7 @@ move_dest_operand (op, mode) ...@@ -870,8 +822,7 @@ move_dest_operand (op, mode)
It is used by the 'G' CONST_DOUBLE_OK_FOR_LETTER. */ It is used by the 'G' CONST_DOUBLE_OK_FOR_LETTER. */
int int
easy_di_const (op) easy_di_const (rtx op)
rtx op;
{ {
rtx high_rtx, low_rtx; rtx high_rtx, low_rtx;
HOST_WIDE_INT high, low; HOST_WIDE_INT high, low;
...@@ -891,8 +842,7 @@ easy_di_const (op) ...@@ -891,8 +842,7 @@ easy_di_const (op)
It is used by the 'H' CONST_DOUBLE_OK_FOR_LETTER. */ It is used by the 'H' CONST_DOUBLE_OK_FOR_LETTER. */
int int
easy_df_const (op) easy_df_const (rtx op)
rtx op;
{ {
REAL_VALUE_TYPE r; REAL_VALUE_TYPE r;
long l[2]; long l[2];
...@@ -909,9 +859,7 @@ easy_df_const (op) ...@@ -909,9 +859,7 @@ easy_df_const (op)
/* Return 1 if OP is an EQ or NE comparison operator. */ /* Return 1 if OP is an EQ or NE comparison operator. */
int int
eqne_comparison_operator (op, mode) eqne_comparison_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
enum rtx_code code = GET_CODE (op); enum rtx_code code = GET_CODE (op);
...@@ -923,9 +871,7 @@ eqne_comparison_operator (op, mode) ...@@ -923,9 +871,7 @@ eqne_comparison_operator (op, mode)
/* Return 1 if OP is a signed comparison operator. */ /* Return 1 if OP is a signed comparison operator. */
int int
signed_comparison_operator (op, mode) signed_comparison_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
enum rtx_code code = GET_CODE (op); enum rtx_code code = GET_CODE (op);
...@@ -939,9 +885,7 @@ signed_comparison_operator (op, mode) ...@@ -939,9 +885,7 @@ signed_comparison_operator (op, mode)
This is used in insn length calcs. */ This is used in insn length calcs. */
int int
memreg_operand (op, mode) memreg_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return GET_CODE (op) == MEM && GET_CODE (XEXP (op, 0)) == REG; return GET_CODE (op) == MEM && GET_CODE (XEXP (op, 0)) == REG;
} }
...@@ -950,9 +894,7 @@ memreg_operand (op, mode) ...@@ -950,9 +894,7 @@ memreg_operand (op, mode)
operation. */ operation. */
int int
extend_operand (op, mode) extend_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
rtx addr; rtx addr;
...@@ -978,9 +920,7 @@ extend_operand (op, mode) ...@@ -978,9 +920,7 @@ extend_operand (op, mode)
Allow const_int 0 as well, which is a placeholder for NOP slots. */ Allow const_int 0 as well, which is a placeholder for NOP slots. */
int int
small_insn_p (op, mode) small_insn_p (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) == CONST_INT && INTVAL (op) == 0) if (GET_CODE (op) == CONST_INT && INTVAL (op) == 0)
return 1; return 1;
...@@ -994,9 +934,7 @@ small_insn_p (op, mode) ...@@ -994,9 +934,7 @@ small_insn_p (op, mode)
/* Return nonzero if the operand is an insn that is a large insn. */ /* Return nonzero if the operand is an insn that is a large insn. */
int int
large_insn_p (op, mode) large_insn_p (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (! INSN_P (op)) if (! INSN_P (op))
return 0; return 0;
...@@ -1009,8 +947,7 @@ large_insn_p (op, mode) ...@@ -1009,8 +947,7 @@ large_insn_p (op, mode)
in this function. */ in this function. */
int int
m32r_pass_by_reference (type) m32r_pass_by_reference (tree type)
tree type;
{ {
int size = int_size_in_bytes (type); int size = int_size_in_bytes (type);
...@@ -1028,12 +965,10 @@ m32r_pass_by_reference (type) ...@@ -1028,12 +965,10 @@ m32r_pass_by_reference (type)
than being subsumed into the following branch instruction. */ than being subsumed into the following branch instruction. */
rtx rtx
gen_compare (code, x, y, need_compare) gen_compare (enum rtx_code code, rtx x, rtx y, int need_compare)
enum rtx_code code;
rtx x, y;
int need_compare;
{ {
enum rtx_code compare_code, branch_code; enum rtx_code compare_code;
enum rtx_code branch_code;
rtx cc_reg = gen_rtx_REG (CCmode, CARRY_REGNUM); rtx cc_reg = gen_rtx_REG (CCmode, CARRY_REGNUM);
int must_swap = 0; int must_swap = 0;
...@@ -1060,7 +995,7 @@ gen_compare (code, x, y, need_compare) ...@@ -1060,7 +995,7 @@ gen_compare (code, x, y, need_compare)
{ {
case EQ: case EQ:
if (GET_CODE (y) == CONST_INT if (GET_CODE (y) == CONST_INT
&& CMP_INT16_P (INTVAL (y)) /* reg equal to small const. */ && CMP_INT16_P (INTVAL (y)) /* Reg equal to small const. */
&& y != const0_rtx) && y != const0_rtx)
{ {
rtx tmp = gen_reg_rtx (SImode); rtx tmp = gen_reg_rtx (SImode);
...@@ -1069,14 +1004,14 @@ gen_compare (code, x, y, need_compare) ...@@ -1069,14 +1004,14 @@ gen_compare (code, x, y, need_compare)
x = tmp; x = tmp;
y = const0_rtx; y = const0_rtx;
} }
else if (CONSTANT_P (y)) /* reg equal to const. */ else if (CONSTANT_P (y)) /* Reg equal to const. */
{ {
rtx tmp = force_reg (GET_MODE (x), y); rtx tmp = force_reg (GET_MODE (x), y);
y = tmp; y = tmp;
} }
if (register_operand (y, SImode) /* reg equal to reg. */ if (register_operand (y, SImode) /* Reg equal to reg. */
|| y == const0_rtx) /* req equal to zero. */ || y == const0_rtx) /* Reg equal to zero. */
{ {
emit_insn (gen_cmp_eqsi_insn (x, y)); emit_insn (gen_cmp_eqsi_insn (x, y));
...@@ -1088,7 +1023,7 @@ gen_compare (code, x, y, need_compare) ...@@ -1088,7 +1023,7 @@ gen_compare (code, x, y, need_compare)
if (register_operand (y, SImode) if (register_operand (y, SImode)
|| (GET_CODE (y) == CONST_INT && CMP_INT16_P (INTVAL (y)))) || (GET_CODE (y) == CONST_INT && CMP_INT16_P (INTVAL (y))))
{ {
rtx tmp = gen_reg_rtx (SImode); /* reg compared to reg. */ rtx tmp = gen_reg_rtx (SImode); /* Reg compared to reg. */
switch (code) switch (code)
{ {
...@@ -1128,7 +1063,7 @@ gen_compare (code, x, y, need_compare) ...@@ -1128,7 +1063,7 @@ gen_compare (code, x, y, need_compare)
if (register_operand (y, SImode) if (register_operand (y, SImode)
|| (GET_CODE (y) == CONST_INT && CMP_INT16_P (INTVAL (y)))) || (GET_CODE (y) == CONST_INT && CMP_INT16_P (INTVAL (y))))
{ {
rtx tmp = gen_reg_rtx (SImode); /* reg (unsigned) compared to reg. */ rtx tmp = gen_reg_rtx (SImode); /* Reg (unsigned) compared to reg. */
switch (code) switch (code)
{ {
...@@ -1170,31 +1105,33 @@ gen_compare (code, x, y, need_compare) ...@@ -1170,31 +1105,33 @@ gen_compare (code, x, y, need_compare)
} }
else else
{ {
/* reg/reg equal comparison */ /* Reg/reg equal comparison. */
if (compare_code == EQ if (compare_code == EQ
&& register_operand (y, SImode)) && register_operand (y, SImode))
return gen_rtx (code, CCmode, x, y); return gen_rtx (code, CCmode, x, y);
/* reg/zero signed comparison */ /* Reg/zero signed comparison. */
if ((compare_code == EQ || compare_code == LT) if ((compare_code == EQ || compare_code == LT)
&& y == const0_rtx) && y == const0_rtx)
return gen_rtx (code, CCmode, x, y); return gen_rtx (code, CCmode, x, y);
/* reg/smallconst equal comparison */ /* Reg/smallconst equal comparison. */
if (compare_code == EQ if (compare_code == EQ
&& GET_CODE (y) == CONST_INT && GET_CODE (y) == CONST_INT
&& CMP_INT16_P (INTVAL (y))) && CMP_INT16_P (INTVAL (y)))
{ {
rtx tmp = gen_reg_rtx (SImode); rtx tmp = gen_reg_rtx (SImode);
emit_insn (gen_cmp_ne_small_const_insn (tmp, x, y)); emit_insn (gen_cmp_ne_small_const_insn (tmp, x, y));
return gen_rtx (code, CCmode, tmp, const0_rtx); return gen_rtx (code, CCmode, tmp, const0_rtx);
} }
/* reg/const equal comparison */ /* Reg/const equal comparison. */
if (compare_code == EQ if (compare_code == EQ
&& CONSTANT_P (y)) && CONSTANT_P (y))
{ {
rtx tmp = force_reg (GET_MODE (x), y); rtx tmp = force_reg (GET_MODE (x), y);
return gen_rtx (code, CCmode, x, tmp); return gen_rtx (code, CCmode, x, tmp);
} }
} }
...@@ -1237,8 +1174,7 @@ gen_compare (code, x, y, need_compare) ...@@ -1237,8 +1174,7 @@ gen_compare (code, x, y, need_compare)
/* Split a 2 word move (DI or DF) into component parts. */ /* Split a 2 word move (DI or DF) into component parts. */
rtx rtx
gen_split_move_double (operands) gen_split_move_double (rtx operands[])
rtx operands[];
{ {
enum machine_mode mode = GET_MODE (operands[0]); enum machine_mode mode = GET_MODE (operands[0]);
rtx dest = operands[0]; rtx dest = operands[0];
...@@ -1258,7 +1194,7 @@ gen_split_move_double (operands) ...@@ -1258,7 +1194,7 @@ gen_split_move_double (operands)
{ {
int dregno = REGNO (dest); int dregno = REGNO (dest);
/* reg = reg */ /* Reg = reg. */
if (GET_CODE (src) == REG) if (GET_CODE (src) == REG)
{ {
int sregno = REGNO (src); int sregno = REGNO (src);
...@@ -1277,7 +1213,7 @@ gen_split_move_double (operands) ...@@ -1277,7 +1213,7 @@ gen_split_move_double (operands)
operand_subword (src, !reverse, TRUE, mode))); operand_subword (src, !reverse, TRUE, mode)));
} }
/* reg = constant */ /* Reg = constant. */
else if (GET_CODE (src) == CONST_INT || GET_CODE (src) == CONST_DOUBLE) else if (GET_CODE (src) == CONST_INT || GET_CODE (src) == CONST_DOUBLE)
{ {
rtx words[2]; rtx words[2];
...@@ -1291,7 +1227,7 @@ gen_split_move_double (operands) ...@@ -1291,7 +1227,7 @@ gen_split_move_double (operands)
words[1])); words[1]));
} }
/* reg = mem */ /* Reg = mem. */
else if (GET_CODE (src) == MEM) else if (GET_CODE (src) == MEM)
{ {
/* If the high-address word is used in the address, we must load it /* If the high-address word is used in the address, we must load it
...@@ -1320,12 +1256,11 @@ gen_split_move_double (operands) ...@@ -1320,12 +1256,11 @@ gen_split_move_double (operands)
adjust_address (src, SImode, adjust_address (src, SImode,
!reverse * UNITS_PER_WORD))); !reverse * UNITS_PER_WORD)));
} }
else else
abort (); abort ();
} }
/* mem = reg */ /* Mem = reg. */
/* We used to optimize loads from single registers as /* We used to optimize loads from single registers as
st r1,r3; st r2,+r3 st r1,r3; st r2,+r3
...@@ -1360,11 +1295,8 @@ gen_split_move_double (operands) ...@@ -1360,11 +1295,8 @@ gen_split_move_double (operands)
/* Implements the FUNCTION_ARG_PARTIAL_NREGS macro. */ /* Implements the FUNCTION_ARG_PARTIAL_NREGS macro. */
int int
function_arg_partial_nregs (cum, mode, type, named) function_arg_partial_nregs (CUMULATIVE_ARGS *cum, enum machine_mode mode,
CUMULATIVE_ARGS *cum; tree type, int named ATTRIBUTE_UNUSED)
enum machine_mode mode;
tree type;
int named ATTRIBUTE_UNUSED;
{ {
int ret; int ret;
unsigned int size = unsigned int size =
...@@ -1391,12 +1323,8 @@ function_arg_partial_nregs (cum, mode, type, named) ...@@ -1391,12 +1323,8 @@ function_arg_partial_nregs (cum, mode, type, named)
and mode MODE, and we rely on this fact. */ and mode MODE, and we rely on this fact. */
void void
m32r_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl) m32r_setup_incoming_varargs (CUMULATIVE_ARGS *cum, enum machine_mode mode,
CUMULATIVE_ARGS *cum; tree type, int *pretend_size, int no_rtl)
enum machine_mode mode;
tree type;
int *pretend_size;
int no_rtl;
{ {
int first_anon_arg; int first_anon_arg;
...@@ -1432,8 +1360,7 @@ m32r_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl) ...@@ -1432,8 +1360,7 @@ m32r_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl)
/* Implement `va_arg'. */ /* Implement `va_arg'. */
rtx rtx
m32r_va_arg (valist, type) m32r_va_arg (tree valist, tree type)
tree valist, type;
{ {
HOST_WIDE_INT size, rsize; HOST_WIDE_INT size, rsize;
tree t; tree t;
...@@ -1447,7 +1374,6 @@ m32r_va_arg (valist, type) ...@@ -1447,7 +1374,6 @@ m32r_va_arg (valist, type)
tree type_ptr, type_ptr_ptr; tree type_ptr, type_ptr_ptr;
/* Pass by reference. */ /* Pass by reference. */
type_ptr = build_pointer_type (type); type_ptr = build_pointer_type (type);
type_ptr_ptr = build_pointer_type (type_ptr); type_ptr_ptr = build_pointer_type (type_ptr);
...@@ -1463,7 +1389,6 @@ m32r_va_arg (valist, type) ...@@ -1463,7 +1389,6 @@ m32r_va_arg (valist, type)
else else
{ {
/* Pass by value. */ /* Pass by value. */
if (size < UNITS_PER_WORD) if (size < UNITS_PER_WORD)
{ {
/* Care for bigendian correction on the aligned address. */ /* Care for bigendian correction on the aligned address. */
...@@ -1492,11 +1417,8 @@ m32r_va_arg (valist, type) ...@@ -1492,11 +1417,8 @@ m32r_va_arg (valist, type)
} }
static int static int
m32r_adjust_cost (insn, link, dep_insn, cost) m32r_adjust_cost (rtx insn ATTRIBUTE_UNUSED, rtx link ATTRIBUTE_UNUSED,
rtx insn ATTRIBUTE_UNUSED; rtx dep_insn ATTRIBUTE_UNUSED, int cost)
rtx link ATTRIBUTE_UNUSED;
rtx dep_insn ATTRIBUTE_UNUSED;
int cost;
{ {
return cost; return cost;
} }
...@@ -1505,8 +1427,7 @@ m32r_adjust_cost (insn, link, dep_insn, cost) ...@@ -1505,8 +1427,7 @@ m32r_adjust_cost (insn, link, dep_insn, cost)
/* Return true if INSN is real instruction bearing insn. */ /* Return true if INSN is real instruction bearing insn. */
static int static int
m32r_is_insn (insn) m32r_is_insn (rtx insn)
rtx insn;
{ {
return (INSN_P (insn) return (INSN_P (insn)
&& GET_CODE (PATTERN (insn)) != USE && GET_CODE (PATTERN (insn)) != USE
...@@ -1518,9 +1439,7 @@ m32r_is_insn (insn) ...@@ -1518,9 +1439,7 @@ m32r_is_insn (insn)
short instructions are scheduled ahead of the long ones. */ short instructions are scheduled ahead of the long ones. */
static int static int
m32r_adjust_priority (insn, priority) m32r_adjust_priority (rtx insn, int priority)
rtx insn;
int priority;
{ {
if (m32r_is_insn (insn) if (m32r_is_insn (insn)
&& get_attr_insn_size (insn) != INSN_SIZE_SHORT) && get_attr_insn_size (insn) != INSN_SIZE_SHORT)
...@@ -1533,10 +1452,9 @@ m32r_adjust_priority (insn, priority) ...@@ -1533,10 +1452,9 @@ m32r_adjust_priority (insn, priority)
/* Initialize for scheduling a group of instructions. */ /* Initialize for scheduling a group of instructions. */
static void static void
m32r_sched_init (stream, verbose, max_ready) m32r_sched_init (FILE * stream ATTRIBUTE_UNUSED,
FILE * stream ATTRIBUTE_UNUSED; int verbose ATTRIBUTE_UNUSED,
int verbose ATTRIBUTE_UNUSED; int max_ready ATTRIBUTE_UNUSED)
int max_ready ATTRIBUTE_UNUSED;
{ {
m32r_sched_odd_word_p = FALSE; m32r_sched_odd_word_p = FALSE;
} }
...@@ -1545,12 +1463,8 @@ m32r_sched_init (stream, verbose, max_ready) ...@@ -1545,12 +1463,8 @@ m32r_sched_init (stream, verbose, max_ready)
/* Reorder the schedulers priority list if needed */ /* Reorder the schedulers priority list if needed */
static int static int
m32r_sched_reorder (stream, verbose, ready, n_readyp, clock) m32r_sched_reorder (FILE * stream, int verbose, rtx * ready,
FILE * stream; int *n_readyp, int clock ATTRIBUTE_UNUSED)
int verbose;
rtx * ready;
int *n_readyp;
int clock ATTRIBUTE_UNUSED;
{ {
int n_ready = *n_readyp; int n_ready = *n_readyp;
...@@ -1568,11 +1482,11 @@ m32r_sched_reorder (stream, verbose, ready, n_readyp, clock) ...@@ -1568,11 +1482,11 @@ m32r_sched_reorder (stream, verbose, ready, n_readyp, clock)
if (n_ready > 1) if (n_ready > 1)
{ {
rtx * long_head = (rtx *) alloca (sizeof (rtx) * n_ready); rtx * long_head = alloca (sizeof (rtx) * n_ready);
rtx * long_tail = long_head; rtx * long_tail = long_head;
rtx * short_head = (rtx *) alloca (sizeof (rtx) * n_ready); rtx * short_head = alloca (sizeof (rtx) * n_ready);
rtx * short_tail = short_head; rtx * short_tail = short_head;
rtx * new_head = (rtx *) alloca (sizeof (rtx) * n_ready); rtx * new_head = alloca (sizeof (rtx) * n_ready);
rtx * new_tail = new_head + (n_ready - 1); rtx * new_tail = new_head + (n_ready - 1);
int i; int i;
...@@ -1611,19 +1525,19 @@ m32r_sched_reorder (stream, verbose, ready, n_readyp, clock) ...@@ -1611,19 +1525,19 @@ m32r_sched_reorder (stream, verbose, ready, n_readyp, clock)
} }
/* If we are on an odd word, emit a single short instruction if /* If we are on an odd word, emit a single short instruction if
we can */ we can. */
if (m32r_sched_odd_word_p && short_head != short_tail) if (m32r_sched_odd_word_p && short_head != short_tail)
*new_tail-- = *short_head++; *new_tail-- = *short_head++;
/* Now dump out all of the long instructions */ /* Now dump out all of the long instructions. */
while (long_head != long_tail) while (long_head != long_tail)
*new_tail-- = *long_head++; *new_tail-- = *long_head++;
/* Now dump out all of the short instructions */ /* Now dump out all of the short instructions. */
while (short_head != short_tail) while (short_head != short_tail)
*new_tail-- = *short_head++; *new_tail-- = *short_head++;
if (new_tail+1 != new_head) if (new_tail + 1 != new_head)
abort (); abort ();
memcpy (ready, new_head, sizeof (rtx) * n_ready); memcpy (ready, new_head, sizeof (rtx) * n_ready);
...@@ -1657,9 +1571,10 @@ m32r_sched_reorder (stream, verbose, ready, n_readyp, clock) ...@@ -1657,9 +1571,10 @@ m32r_sched_reorder (stream, verbose, ready, n_readyp, clock)
This is sort of a lie. The m32r can issue only 1 long insn at This is sort of a lie. The m32r can issue only 1 long insn at
once, but it can issue 2 short insns. The default therefore is once, but it can issue 2 short insns. The default therefore is
set at 2, but this can be overridden by the command line option set at 2, but this can be overridden by the command line option
-missue-rate=1 */ -missue-rate=1. */
static int static int
m32r_issue_rate () m32r_issue_rate (void)
{ {
return ((TARGET_LOW_ISSUE_RATE) ? 1 : 2); return ((TARGET_LOW_ISSUE_RATE) ? 1 : 2);
} }
...@@ -1667,12 +1582,9 @@ m32r_issue_rate () ...@@ -1667,12 +1582,9 @@ m32r_issue_rate ()
/* If we have a machine that can issue a variable # of instructions /* If we have a machine that can issue a variable # of instructions
per cycle, indicate how many more instructions can be issued per cycle, indicate how many more instructions can be issued
after the current one. */ after the current one. */
static int static int
m32r_variable_issue (stream, verbose, insn, how_many) m32r_variable_issue (FILE * stream, int verbose, rtx insn, int how_many)
FILE * stream;
int verbose;
rtx insn;
int how_many;
{ {
int orig_odd_word_p = m32r_sched_odd_word_p; int orig_odd_word_p = m32r_sched_odd_word_p;
int short_p = FALSE; int short_p = FALSE;
...@@ -1709,10 +1621,7 @@ m32r_variable_issue (stream, verbose, insn, how_many) ...@@ -1709,10 +1621,7 @@ m32r_variable_issue (stream, verbose, insn, how_many)
/* Cost functions. */ /* Cost functions. */
static bool static bool
m32r_rtx_costs (x, code, outer_code, total) m32r_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED, int *total)
rtx x;
int code, outer_code ATTRIBUTE_UNUSED;
int *total;
{ {
switch (code) switch (code)
{ {
...@@ -1736,6 +1645,7 @@ m32r_rtx_costs (x, code, outer_code, total) ...@@ -1736,6 +1645,7 @@ m32r_rtx_costs (x, code, outer_code, total)
case CONST_DOUBLE: case CONST_DOUBLE:
{ {
rtx high, low; rtx high, low;
split_double (x, &high, &low); split_double (x, &high, &low);
*total = COSTS_N_INSNS (!INT16_P (INTVAL (high)) *total = COSTS_N_INSNS (!INT16_P (INTVAL (high))
+ !INT16_P (INTVAL (low))); + !INT16_P (INTVAL (low)));
...@@ -1764,8 +1674,7 @@ m32r_rtx_costs (x, code, outer_code, total) ...@@ -1764,8 +1674,7 @@ m32r_rtx_costs (x, code, outer_code, total)
call with DECL = NULL_TREE. */ call with DECL = NULL_TREE. */
enum m32r_function_type enum m32r_function_type
m32r_compute_function_type (decl) m32r_compute_function_type (tree decl)
tree decl;
{ {
/* Cached value. */ /* Cached value. */
static enum m32r_function_type fn_type = M32R_FUNCTION_UNKNOWN; static enum m32r_function_type fn_type = M32R_FUNCTION_UNKNOWN;
...@@ -1838,23 +1747,22 @@ Notes: ...@@ -1838,23 +1747,22 @@ Notes:
containing anonymous args separately but that complicates things too containing anonymous args separately but that complicates things too
much (so it's not done). much (so it's not done).
3) The return address is saved after the register save area so as to have as 3) The return address is saved after the register save area so as to have as
many insns as possible between the restoration of `lr' and the `jmp lr'. many insns as possible between the restoration of `lr' and the `jmp lr'. */
*/
/* Structure to be filled in by m32r_compute_frame_size with register /* Structure to be filled in by m32r_compute_frame_size with register
save masks, and offsets for the current function. */ save masks, and offsets for the current function. */
struct m32r_frame_info struct m32r_frame_info
{ {
unsigned int total_size; /* # bytes that the entire frame takes up */ unsigned int total_size; /* # bytes that the entire frame takes up. */
unsigned int extra_size; /* # bytes of extra stuff */ unsigned int extra_size; /* # bytes of extra stuff. */
unsigned int pretend_size; /* # bytes we push and pretend caller did */ unsigned int pretend_size; /* # bytes we push and pretend caller did. */
unsigned int args_size; /* # bytes that outgoing arguments take up */ unsigned int args_size; /* # bytes that outgoing arguments take up. */
unsigned int reg_size; /* # bytes needed to store regs */ unsigned int reg_size; /* # bytes needed to store regs. */
unsigned int var_size; /* # bytes that variables take up */ unsigned int var_size; /* # bytes that variables take up. */
unsigned int gmask; /* mask of saved gp registers */ unsigned int gmask; /* Mask of saved gp registers. */
unsigned int save_fp; /* nonzero if fp must be saved */ unsigned int save_fp; /* Nonzero if fp must be saved. */
unsigned int save_lr; /* nonzero if lr (return addr) must be saved */ unsigned int save_lr; /* Nonzero if lr (return addr) must be saved. */
int initialized; /* nonzero if frame size already calculated */ int initialized; /* Nonzero if frame size already calculated. */
}; };
/* Current frame information calculated by m32r_compute_frame_size. */ /* Current frame information calculated by m32r_compute_frame_size. */
...@@ -1864,7 +1772,7 @@ static struct m32r_frame_info current_frame_info; ...@@ -1864,7 +1772,7 @@ static struct m32r_frame_info current_frame_info;
static struct m32r_frame_info zero_frame_info; static struct m32r_frame_info zero_frame_info;
#define FRAME_POINTER_MASK (1 << (FRAME_POINTER_REGNUM)) #define FRAME_POINTER_MASK (1 << (FRAME_POINTER_REGNUM))
#define RETURN_ADDR_MASK (1 << (RETURN_ADDR_REGNUM)) #define RETURN_ADDR_MASK (1 << (RETURN_ADDR_REGNUM))
/* Tell prologue and epilogue if register REGNO should be saved / restored. /* Tell prologue and epilogue if register REGNO should be saved / restored.
The return address and frame pointer are treated separately. The return address and frame pointer are treated separately.
...@@ -1874,10 +1782,10 @@ static struct m32r_frame_info zero_frame_info; ...@@ -1874,10 +1782,10 @@ static struct m32r_frame_info zero_frame_info;
&& (regs_ever_live[regno] && (!call_used_regs[regno] || interrupt_p))) && (regs_ever_live[regno] && (!call_used_regs[regno] || interrupt_p)))
#define MUST_SAVE_FRAME_POINTER (regs_ever_live[FRAME_POINTER_REGNUM]) #define MUST_SAVE_FRAME_POINTER (regs_ever_live[FRAME_POINTER_REGNUM])
#define MUST_SAVE_RETURN_ADDR (regs_ever_live[RETURN_ADDR_REGNUM] || current_function_profile) #define MUST_SAVE_RETURN_ADDR (regs_ever_live[RETURN_ADDR_REGNUM] || current_function_profile)
#define SHORT_INSN_SIZE 2 /* size of small instructions */ #define SHORT_INSN_SIZE 2 /* Size of small instructions. */
#define LONG_INSN_SIZE 4 /* size of long instructions */ #define LONG_INSN_SIZE 4 /* Size of long instructions. */
/* Return the bytes needed to compute the frame pointer from the current /* Return the bytes needed to compute the frame pointer from the current
stack pointer. stack pointer.
...@@ -1885,8 +1793,7 @@ static struct m32r_frame_info zero_frame_info; ...@@ -1885,8 +1793,7 @@ static struct m32r_frame_info zero_frame_info;
SIZE is the size needed for local variables. */ SIZE is the size needed for local variables. */
unsigned int unsigned int
m32r_compute_frame_size (size) m32r_compute_frame_size (int size) /* # of var. bytes allocated. */
int size; /* # of var. bytes allocated. */
{ {
int regno; int regno;
unsigned int total_size, var_size, args_size, pretend_size, extra_size; unsigned int total_size, var_size, args_size, pretend_size, extra_size;
...@@ -1909,7 +1816,6 @@ m32r_compute_frame_size (size) ...@@ -1909,7 +1816,6 @@ m32r_compute_frame_size (size)
interrupt_p = M32R_INTERRUPT_P (fn_type); interrupt_p = M32R_INTERRUPT_P (fn_type);
/* Calculate space needed for registers. */ /* Calculate space needed for registers. */
for (regno = 0; regno < M32R_MAX_INT_REGS; regno++) for (regno = 0; regno < M32R_MAX_INT_REGS; regno++)
{ {
if (MUST_SAVE_REGISTER (regno, interrupt_p)) if (MUST_SAVE_REGISTER (regno, interrupt_p))
...@@ -1951,7 +1857,7 @@ m32r_compute_frame_size (size) ...@@ -1951,7 +1857,7 @@ m32r_compute_frame_size (size)
function. If not specified, 0 is used. */ function. If not specified, 0 is used. */
int int
m32r_first_insn_address () m32r_first_insn_address (void)
{ {
if (! current_frame_info.initialized) if (! current_frame_info.initialized)
m32r_compute_frame_size (get_frame_size ()); m32r_compute_frame_size (get_frame_size ());
...@@ -1962,7 +1868,7 @@ m32r_first_insn_address () ...@@ -1962,7 +1868,7 @@ m32r_first_insn_address ()
/* Expand the m32r prologue as a series of insns. */ /* Expand the m32r prologue as a series of insns. */
void void
m32r_expand_prologue () m32r_expand_prologue (void)
{ {
int regno; int regno;
int frame_size; int frame_size;
...@@ -1989,7 +1895,6 @@ m32r_expand_prologue () ...@@ -1989,7 +1895,6 @@ m32r_expand_prologue ()
} }
/* Save any registers we need to and set up fp. */ /* Save any registers we need to and set up fp. */
if (current_frame_info.save_fp) if (current_frame_info.save_fp)
emit_insn (gen_movsi_push (stack_pointer_rtx, frame_pointer_rtx)); emit_insn (gen_movsi_push (stack_pointer_rtx, frame_pointer_rtx));
...@@ -2014,13 +1919,14 @@ m32r_expand_prologue () ...@@ -2014,13 +1919,14 @@ m32r_expand_prologue ()
+ current_frame_info.reg_size)); + current_frame_info.reg_size));
if (frame_size == 0) if (frame_size == 0)
; /* nothing to do */ ; /* Nothing to do. */
else if (frame_size <= 32768) else if (frame_size <= 32768)
emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
GEN_INT (-frame_size))); GEN_INT (-frame_size)));
else else
{ {
rtx tmp = gen_rtx_REG (Pmode, PROLOGUE_TMP_REGNUM); rtx tmp = gen_rtx_REG (Pmode, PROLOGUE_TMP_REGNUM);
emit_insn (gen_movsi (tmp, GEN_INT (frame_size))); emit_insn (gen_movsi (tmp, GEN_INT (frame_size)));
emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp)); emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp));
} }
...@@ -2038,18 +1944,13 @@ m32r_expand_prologue () ...@@ -2038,18 +1944,13 @@ m32r_expand_prologue ()
m32r_compute_frame_size which calculates the prolog size. */ m32r_compute_frame_size which calculates the prolog size. */
static void static void
m32r_output_function_prologue (file, size) m32r_output_function_prologue (FILE * file, HOST_WIDE_INT size)
FILE * file;
HOST_WIDE_INT size;
{ {
enum m32r_function_type fn_type = m32r_compute_function_type (current_function_decl); enum m32r_function_type fn_type = m32r_compute_function_type (current_function_decl);
/* If this is an interrupt handler, mark it as such. */ /* If this is an interrupt handler, mark it as such. */
if (M32R_INTERRUPT_P (fn_type)) if (M32R_INTERRUPT_P (fn_type))
{ fprintf (file, "\t%s interrupt handler\n", ASM_COMMENT_START);
fprintf (file, "\t%s interrupt handler\n",
ASM_COMMENT_START);
}
if (! current_frame_info.initialized) if (! current_frame_info.initialized)
m32r_compute_frame_size (size); m32r_compute_frame_size (size);
...@@ -2068,9 +1969,7 @@ m32r_output_function_prologue (file, size) ...@@ -2068,9 +1969,7 @@ m32r_output_function_prologue (file, size)
and regs. */ and regs. */
static void static void
m32r_output_function_epilogue (file, size) m32r_output_function_epilogue (FILE * file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
FILE * file;
HOST_WIDE_INT size ATTRIBUTE_UNUSED;
{ {
int regno; int regno;
int noepilogue = FALSE; int noepilogue = FALSE;
...@@ -2111,7 +2010,7 @@ m32r_output_function_epilogue (file, size) ...@@ -2111,7 +2010,7 @@ m32r_output_function_epilogue (file, size)
{ {
unsigned int reg_offset = var_size + args_size; unsigned int reg_offset = var_size + args_size;
if (reg_offset == 0) if (reg_offset == 0)
; /* nothing to do */ ; /* Nothing to do. */
else if (reg_offset < 128) else if (reg_offset < 128)
fprintf (file, "\taddi %s,%s%d\n", fprintf (file, "\taddi %s,%s%d\n",
sp_str, IMMEDIATE_PREFIX, reg_offset); sp_str, IMMEDIATE_PREFIX, reg_offset);
...@@ -2127,6 +2026,7 @@ m32r_output_function_epilogue (file, size) ...@@ -2127,6 +2026,7 @@ m32r_output_function_epilogue (file, size)
else if (frame_pointer_needed) else if (frame_pointer_needed)
{ {
unsigned int reg_offset = var_size + args_size; unsigned int reg_offset = var_size + args_size;
if (reg_offset == 0) if (reg_offset == 0)
fprintf (file, "\tmv %s,%s\n", sp_str, fp_str); fprintf (file, "\tmv %s,%s\n", sp_str, fp_str);
else if (reg_offset < 32768) else if (reg_offset < 32768)
...@@ -2167,11 +2067,6 @@ m32r_output_function_epilogue (file, size) ...@@ -2167,11 +2067,6 @@ m32r_output_function_epilogue (file, size)
fprintf (file, "\tjmp %s\n", reg_names[RETURN_ADDR_REGNUM]); fprintf (file, "\tjmp %s\n", reg_names[RETURN_ADDR_REGNUM]);
} }
#if 0 /* no longer needed */
/* Ensure the function cleanly ends on a 32 bit boundary. */
fprintf (file, "\t.fillinsn\n");
#endif
/* Reset state info for each function. */ /* Reset state info for each function. */
current_frame_info = zero_frame_info; current_frame_info = zero_frame_info;
m32r_compute_function_type (NULL_TREE); m32r_compute_function_type (NULL_TREE);
...@@ -2181,7 +2076,7 @@ m32r_output_function_epilogue (file, size) ...@@ -2181,7 +2076,7 @@ m32r_output_function_epilogue (file, size)
epilogue. */ epilogue. */
int int
direct_return () direct_return (void)
{ {
if (!reload_completed) if (!reload_completed)
return FALSE; return FALSE;
...@@ -2193,14 +2088,14 @@ direct_return () ...@@ -2193,14 +2088,14 @@ direct_return ()
} }
/* PIC */ /* PIC. */
/* Emit special PIC prologues and epilogues. */ /* Emit special PIC prologues and epilogues. */
void void
m32r_finalize_pic () m32r_finalize_pic (void)
{ {
/* nothing to do */ /* Nothing to do. */
} }
/* Nested function support. */ /* Nested function support. */
...@@ -2210,15 +2105,14 @@ m32r_finalize_pic () ...@@ -2210,15 +2105,14 @@ m32r_finalize_pic ()
CXT is an RTX for the static chain value for the function. */ CXT is an RTX for the static chain value for the function. */
void void
m32r_initialize_trampoline (tramp, fnaddr, cxt) m32r_initialize_trampoline (rtx tramp ATTRIBUTE_UNUSED,
rtx tramp ATTRIBUTE_UNUSED; rtx fnaddr ATTRIBUTE_UNUSED,
rtx fnaddr ATTRIBUTE_UNUSED; rtx cxt ATTRIBUTE_UNUSED)
rtx cxt ATTRIBUTE_UNUSED;
{ {
} }
static void static void
m32r_file_start () m32r_file_start (void)
{ {
default_file_start (); default_file_start ();
...@@ -2233,10 +2127,7 @@ m32r_file_start () ...@@ -2233,10 +2127,7 @@ m32r_file_start ()
For `%' followed by punctuation, CODE is the punctuation and X is null. */ For `%' followed by punctuation, CODE is the punctuation and X is null. */
void void
m32r_print_operand (file, x, code) m32r_print_operand (FILE * file, rtx x, int code)
FILE * file;
rtx x;
int code;
{ {
rtx addr; rtx addr;
...@@ -2281,11 +2172,11 @@ m32r_print_operand (file, x, code) ...@@ -2281,11 +2172,11 @@ m32r_print_operand (file, x, code)
output_operand_lossage ("invalid operand to %%R code"); output_operand_lossage ("invalid operand to %%R code");
return; return;
case 'H' : /* High word */ case 'H' : /* High word. */
case 'L' : /* Low word */ case 'L' : /* Low word. */
if (GET_CODE (x) == REG) if (GET_CODE (x) == REG)
{ {
/* L = least significant word, H = most significant word */ /* L = least significant word, H = most significant word. */
if ((WORDS_BIG_ENDIAN != 0) ^ (code == 'L')) if ((WORDS_BIG_ENDIAN != 0) ^ (code == 'L'))
fputs (reg_names[REGNO (x)], file); fputs (reg_names[REGNO (x)], file);
else else
...@@ -2317,8 +2208,8 @@ m32r_print_operand (file, x, code) ...@@ -2317,8 +2208,8 @@ m32r_print_operand (file, x, code)
return; return;
} }
case 'B' : /* Bottom half */ case 'B' : /* Bottom half. */
case 'T' : /* Top half */ case 'T' : /* Top half. */
/* Output the argument to a `seth' insn (sets the Top half-word). /* Output the argument to a `seth' insn (sets the Top half-word).
For constants output arguments to a seth/or3 pair to set Top and For constants output arguments to a seth/or3 pair to set Top and
Bottom halves. For symbols output arguments to a seth/add3 pair to Bottom halves. For symbols output arguments to a seth/add3 pair to
...@@ -2393,12 +2284,6 @@ m32r_print_operand (file, x, code) ...@@ -2393,12 +2284,6 @@ m32r_print_operand (file, x, code)
fputs (IMMEDIATE_PREFIX, file); fputs (IMMEDIATE_PREFIX, file);
return; return;
#if 0 /* ??? no longer used */
case '@' :
fputs (reg_names[SDA_REGNUM], file);
return;
#endif
case 0 : case 0 :
/* Do nothing special. */ /* Do nothing special. */
break; break;
...@@ -2469,13 +2354,11 @@ m32r_print_operand (file, x, code) ...@@ -2469,13 +2354,11 @@ m32r_print_operand (file, x, code)
/* Print a memory address as an operand to reference that memory location. */ /* Print a memory address as an operand to reference that memory location. */
void void
m32r_print_operand_address (file, addr) m32r_print_operand_address (FILE * file, rtx addr)
FILE * file;
rtx addr;
{ {
register rtx base; rtx base;
register rtx index = 0; rtx index = 0;
int offset = 0; int offset = 0;
switch (GET_CODE (addr)) switch (GET_CODE (addr))
{ {
...@@ -2542,15 +2425,15 @@ m32r_print_operand_address (file, addr) ...@@ -2542,15 +2425,15 @@ m32r_print_operand_address (file, addr)
fputs (reg_names[REGNO (XEXP (addr, 0))], file); fputs (reg_names[REGNO (XEXP (addr, 0))], file);
break; break;
case PRE_INC : /* Assume SImode */ case PRE_INC : /* Assume SImode. */
fprintf (file, "+%s", reg_names[REGNO (XEXP (addr, 0))]); fprintf (file, "+%s", reg_names[REGNO (XEXP (addr, 0))]);
break; break;
case PRE_DEC : /* Assume SImode */ case PRE_DEC : /* Assume SImode. */
fprintf (file, "-%s", reg_names[REGNO (XEXP (addr, 0))]); fprintf (file, "-%s", reg_names[REGNO (XEXP (addr, 0))]);
break; break;
case POST_INC : /* Assume SImode */ case POST_INC : /* Assume SImode. */
fprintf (file, "%s+", reg_names[REGNO (XEXP (addr, 0))]); fprintf (file, "%s+", reg_names[REGNO (XEXP (addr, 0))]);
break; break;
...@@ -2561,10 +2444,9 @@ m32r_print_operand_address (file, addr) ...@@ -2561,10 +2444,9 @@ m32r_print_operand_address (file, addr)
} }
/* Return true if the operands are the constants 0 and 1. */ /* Return true if the operands are the constants 0 and 1. */
int int
zero_and_one (operand1, operand2) zero_and_one (rtx operand1, rtx operand2)
rtx operand1;
rtx operand2;
{ {
return return
GET_CODE (operand1) == CONST_INT GET_CODE (operand1) == CONST_INT
...@@ -2574,12 +2456,11 @@ zero_and_one (operand1, operand2) ...@@ -2574,12 +2456,11 @@ zero_and_one (operand1, operand2)
} }
/* Return nonzero if the operand is suitable for use in a conditional move sequence. */ /* Return nonzero if the operand is suitable for use in a conditional move sequence. */
int int
conditional_move_operand (operand, mode) conditional_move_operand (rtx operand, enum machine_mode mode)
rtx operand;
enum machine_mode mode;
{ {
/* Only defined for simple integers so far... */ /* Only defined for simple integers so far... */
if (mode != SImode && mode != HImode && mode != QImode) if (mode != SImode && mode != HImode && mode != QImode)
return FALSE; return FALSE;
...@@ -2603,11 +2484,10 @@ conditional_move_operand (operand, mode) ...@@ -2603,11 +2484,10 @@ conditional_move_operand (operand, mode)
} }
} }
/* Return true if the code is a test of the carry bit */ /* Return true if the code is a test of the carry bit. */
int int
carry_compare_operand (op, mode) carry_compare_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
rtx x; rtx x;
...@@ -2633,10 +2513,9 @@ carry_compare_operand (op, mode) ...@@ -2633,10 +2513,9 @@ carry_compare_operand (op, mode)
conditional_move_operand() function above. The destination is operand[0]. conditional_move_operand() function above. The destination is operand[0].
The condition is operand [1]. The 'true' value is operand [2] and the The condition is operand [1]. The 'true' value is operand [2] and the
'false' value is operand [3]. */ 'false' value is operand [3]. */
char * char *
emit_cond_move (operands, insn) emit_cond_move (rtx * operands, rtx insn ATTRIBUTE_UNUSED)
rtx * operands;
rtx insn ATTRIBUTE_UNUSED;
{ {
static char buffer [100]; static char buffer [100];
const char * dest = reg_names [REGNO (operands [0])]; const char * dest = reg_names [REGNO (operands [0])];
...@@ -2671,10 +2550,9 @@ emit_cond_move (operands, insn) ...@@ -2671,10 +2550,9 @@ emit_cond_move (operands, insn)
/* Returns true if the registers contained in the two /* Returns true if the registers contained in the two
rtl expressions are different. */ rtl expressions are different. */
int int
m32r_not_same_reg (a, b) m32r_not_same_reg (rtx a, rtx b)
rtx a;
rtx b;
{ {
int reg_a = -1; int reg_a = -1;
int reg_b = -2; int reg_b = -2;
...@@ -2696,11 +2574,9 @@ m32r_not_same_reg (a, b) ...@@ -2696,11 +2574,9 @@ m32r_not_same_reg (a, b)
/* Use a library function to move some bytes. */ /* Use a library function to move some bytes. */
static void static void
block_move_call (dest_reg, src_reg, bytes_rtx) block_move_call (rtx dest, rtx src_reg, rtx bytes_rtx)
rtx dest_reg;
rtx src_reg;
rtx bytes_rtx;
{ {
/* We want to pass the size as Pmode, which will normally be SImode /* We want to pass the size as Pmode, which will normally be SImode
but will be DImode if we are using 64 bit longs and pointers. */ but will be DImode if we are using 64 bit longs and pointers. */
...@@ -2738,8 +2614,7 @@ block_move_call (dest_reg, src_reg, bytes_rtx) ...@@ -2738,8 +2614,7 @@ block_move_call (dest_reg, src_reg, bytes_rtx)
operands[3] is the alignment. */ operands[3] is the alignment. */
void void
m32r_expand_block_move (operands) m32r_expand_block_move (rtx operands[])
rtx operands[];
{ {
rtx orig_dst = operands[0]; rtx orig_dst = operands[0];
rtx orig_src = operands[1]; rtx orig_src = operands[1];
...@@ -2830,9 +2705,7 @@ m32r_expand_block_move (operands) ...@@ -2830,9 +2705,7 @@ m32r_expand_block_move (operands)
operands[4] is a temp register. */ operands[4] is a temp register. */
void void
m32r_output_block_move (insn, operands) m32r_output_block_move (rtx insn ATTRIBUTE_UNUSED, rtx operands[])
rtx insn ATTRIBUTE_UNUSED;
rtx operands[];
{ {
HOST_WIDE_INT bytes = INTVAL (operands[2]); HOST_WIDE_INT bytes = INTVAL (operands[2]);
int first_time; int first_time;
...@@ -2947,10 +2820,9 @@ m32r_output_block_move (insn, operands) ...@@ -2947,10 +2820,9 @@ m32r_output_block_move (insn, operands)
/* Return true if op is an integer constant, less than or equal to /* Return true if op is an integer constant, less than or equal to
MAX_MOVE_BYTES. */ MAX_MOVE_BYTES. */
int int
m32r_block_immediate_operand (op, mode) m32r_block_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != CONST_INT if (GET_CODE (op) != CONST_INT
|| INTVAL (op) > MAX_MOVE_BYTES || INTVAL (op) > MAX_MOVE_BYTES
...@@ -2963,9 +2835,8 @@ m32r_block_immediate_operand (op, mode) ...@@ -2963,9 +2835,8 @@ m32r_block_immediate_operand (op, mode)
/* Return true if using NEW_REG in place of OLD_REG is ok. */ /* Return true if using NEW_REG in place of OLD_REG is ok. */
int int
m32r_hard_regno_rename_ok (old_reg, new_reg) m32r_hard_regno_rename_ok (unsigned int old_reg ATTRIBUTE_UNUSED,
unsigned int old_reg ATTRIBUTE_UNUSED; unsigned int new_reg)
unsigned int new_reg;
{ {
/* Interrupt routines can't clobber any register that isn't already used. */ /* Interrupt routines can't clobber any register that isn't already used. */
if (lookup_attribute ("interrupt", DECL_ATTRIBUTES (current_function_decl)) if (lookup_attribute ("interrupt", DECL_ATTRIBUTES (current_function_decl))
......
/* Definitions of target machine for GNU compiler, Mitsubishi M32R cpu. /* Definitions of target machine for GNU compiler, Renesas M32R cpu.
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
GCC is free software; you can redistribute it and/or modify GCC is free software; you can redistribute it and/or modify it
it under the terms of the GNU General Public License as published by under the terms of the GNU General Public License as published
the Free Software Foundation; either version 2, or (at your option) by the Free Software Foundation; either version 2, or (at your
any later version. option) any later version.
GCC is distributed in the hope that it will be useful, GCC is distributed in the hope that it will be useful, but WITHOUT
but WITHOUT ANY WARRANTY; without even the implied warranty of ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
GNU General Public License for more details. License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* Things to do: /* Things to do:
- longlong.h? - longlong.h?
......
;; Machine description of the Mitsubishi M32R cpu for GNU C compiler ;; Machine description of the Renesas M32R cpu for GNU C compiler
;; Copyright (C) 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc. ;; Copyright (C) 1996, 1997, 1998, 1999, 2001, 2003 Free Software Foundation, Inc.
;; This file is part of GCC. ;; This file is part of GCC.
;; GCC is free software; you can redistribute it and/or modify ;; GCC is free software; you can redistribute it and/or modify it
;; it under the terms of the GNU General Public License as published by ;; under the terms of the GNU General Public License as published
;; the Free Software Foundation; either version 2, or (at your option) ;; by the Free Software Foundation; either version 2, or (at your
;; any later version. ;; option) any later version.
;; GCC is distributed in the hope that it will be useful, ;; GCC is distributed in the hope that it will be useful, but WITHOUT
;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
;; GNU General Public License for more details. ;; License for more details.
;; You should have received a copy of the GNU General Public License ;; You should have received a copy of the GNU General Public License
;; along with GCC; see the file COPYING. If not, write to ;; along with GCC; see the file COPYING. If not, write to
......
...@@ -6837,7 +6837,7 @@ This option makes symbolic debugging impossible. ...@@ -6837,7 +6837,7 @@ This option makes symbolic debugging impossible.
@subsection M32R/D Options @subsection M32R/D Options
@cindex M32R/D options @cindex M32R/D options
These @option{-m} options are defined for Mitsubishi M32R/D architectures: These @option{-m} options are defined for Renesas M32R/D architectures:
@table @gcctabopt @table @gcctabopt
@item -m32r2 @item -m32r2
......
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