Commit f878882b by Andreas Schwab Committed by Andreas Schwab

m68k.c (m68k_output_addr_const_extra): Add cast to enum type.

* config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
enum type.
(m68k_sched_attr_opx_type): Remove unreachable return.
(m68k_sched_attr_opy_type): Likewise.
(m68k_sched_attr_size): Likewise.
(sched_get_opxy_mem_type): Likewise.
(m68k_sched_attr_op_mem): Likewise.

From-SVN: r161225
parent 8d2adc24
2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
* config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
enum type.
(m68k_sched_attr_opx_type): Remove unreachable return.
(m68k_sched_attr_opy_type): Likewise.
(m68k_sched_attr_size): Likewise.
(sched_get_opxy_mem_type): Likewise.
(m68k_sched_attr_op_mem): Likewise.
2010-06-22 Eric Botcazou <ebotcazou@adacore.com> 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
......
...@@ -4597,7 +4597,8 @@ m68k_output_addr_const_extra (FILE *file, rtx x) ...@@ -4597,7 +4597,8 @@ m68k_output_addr_const_extra (FILE *file, rtx x)
case UNSPEC_RELOC16: case UNSPEC_RELOC16:
case UNSPEC_RELOC32: case UNSPEC_RELOC32:
output_addr_const (file, XVECEXP (x, 0, 0)); output_addr_const (file, XVECEXP (x, 0, 0));
fputs (m68k_get_reloc_decoration (INTVAL (XVECEXP (x, 0, 1))), file); fputs (m68k_get_reloc_decoration
((enum m68k_reloc) INTVAL (XVECEXP (x, 0, 1))), file);
return true; return true;
default: default:
...@@ -5609,7 +5610,6 @@ m68k_sched_attr_opx_type (rtx insn, int address_p) ...@@ -5609,7 +5610,6 @@ m68k_sched_attr_opx_type (rtx insn, int address_p)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
...@@ -5653,7 +5653,6 @@ m68k_sched_attr_opy_type (rtx insn, int address_p) ...@@ -5653,7 +5653,6 @@ m68k_sched_attr_opy_type (rtx insn, int address_p)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
...@@ -5759,7 +5758,6 @@ m68k_sched_attr_size (rtx insn) ...@@ -5759,7 +5758,6 @@ m68k_sched_attr_size (rtx insn)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
...@@ -5791,7 +5789,6 @@ sched_get_opxy_mem_type (rtx insn, bool opx_p) ...@@ -5791,7 +5789,6 @@ sched_get_opxy_mem_type (rtx insn, bool opx_p)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
else else
...@@ -5817,7 +5814,6 @@ sched_get_opxy_mem_type (rtx insn, bool opx_p) ...@@ -5817,7 +5814,6 @@ sched_get_opxy_mem_type (rtx insn, bool opx_p)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
} }
...@@ -5850,7 +5846,6 @@ m68k_sched_attr_op_mem (rtx insn) ...@@ -5850,7 +5846,6 @@ m68k_sched_attr_op_mem (rtx insn)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
...@@ -5869,7 +5864,6 @@ m68k_sched_attr_op_mem (rtx insn) ...@@ -5869,7 +5864,6 @@ m68k_sched_attr_op_mem (rtx insn)
default: default:
gcc_unreachable (); gcc_unreachable ();
return 0;
} }
} }
......
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