From patchwork Tue Jun 22 20:04:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 56565 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id CF9CEB6F11 for ; Wed, 23 Jun 2010 06:04:32 +1000 (EST) Received: (qmail 2016 invoked by alias); 22 Jun 2010 20:04:29 -0000 Received: (qmail 1709 invoked by uid 22791); 22 Jun 2010 20:04:25 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, TW_CX X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Jun 2010 20:04:20 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 6996A1C00609 for ; Tue, 22 Jun 2010 22:04:17 +0200 (CEST) Received: from igel.home (ppp-88-217-99-64.dynamic.mnet-online.de [88.217.99.64]) by mail.mnet-online.de (Postfix) with ESMTP id 07E231C000B6 for ; Tue, 22 Jun 2010 22:04:17 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 91B2FCA297; Tue, 22 Jun 2010 22:04:16 +0200 (CEST) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: [M68K] build-with-cxx fixes X-Yow: It's NO USE.. I've gone to ``CLUB MED''!! Date: Tue, 22 Jun 2010 22:04:16 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Tested on ppc-linux. Andreas. 2010-06-22 Andreas Schwab * 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. Index: config/m68k/m68k.c =================================================================== --- config/m68k/m68k.c (revision 161223) +++ config/m68k/m68k.c (working copy) @@ -4597,7 +4597,8 @@ m68k_output_addr_const_extra (FILE *file case UNSPEC_RELOC16: case UNSPEC_RELOC32: 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; default: @@ -5609,7 +5610,6 @@ m68k_sched_attr_opx_type (rtx insn, int default: gcc_unreachable (); - return 0; } } @@ -5653,7 +5653,6 @@ m68k_sched_attr_opy_type (rtx insn, int default: gcc_unreachable (); - return 0; } } @@ -5759,7 +5758,6 @@ m68k_sched_attr_size (rtx insn) default: gcc_unreachable (); - return 0; } } @@ -5791,7 +5789,6 @@ sched_get_opxy_mem_type (rtx insn, bool default: gcc_unreachable (); - return 0; } } else @@ -5817,7 +5814,6 @@ sched_get_opxy_mem_type (rtx insn, bool default: gcc_unreachable (); - return 0; } } } @@ -5850,7 +5846,6 @@ m68k_sched_attr_op_mem (rtx insn) default: gcc_unreachable (); - return 0; } } @@ -5869,7 +5864,6 @@ m68k_sched_attr_op_mem (rtx insn) default: gcc_unreachable (); - return 0; } }