From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26395 invoked by alias); 14 Oct 2007 10:06:21 -0000 Received: (qmail 26387 invoked by uid 22791); 14 Oct 2007 10:06:21 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 14 Oct 2007 10:06:19 +0000 Received: (qmail 18783 invoked from network); 14 Oct 2007 10:06:17 -0000 Received: from unknown (HELO maxim-kuvyrkovs-computer.local) (maxim@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Oct 2007 10:06:17 -0000 Message-ID: <4711EA11.8060603@codesourcery.com> Date: Sun, 14 Oct 2007 10:11:00 -0000 From: Maxim Kuvyrkov User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Andreas Schwab CC: Roman Zippel , gcc-patches Subject: [PATCH][2/3] Unbreak m68k bootstrap References: <4711E7FF.7010002@codesourcery.com> In-Reply-To: <4711E7FF.7010002@codesourcery.com> Content-Type: multipart/mixed; boundary="------------050006030407060603040703" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00818.txt.bz2 This is a multi-part message in MIME format. --------------050006030407060603040703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 390 Hello Andreas, This patch fixes one of bootstrap failure issues on m68k. The patch in neighboring thread (1/3) enables use of autogenerated enums for instruction attributes in -protos.h header. This patch applies that to fix bootstrap-time warning. The patch was bootstrapped on m68k-unknown-linux-gnu with enable-languages=c. OK for trunk? :ADDPATCH m68k: Thanks, Maxim --------------050006030407060603040703 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="m68k-v2.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="m68k-v2.ChangeLog" Content-length: 282 2007-10-12 Maxim Kuvyrkov * config/m68k/m68k.h (m68k_sched_cpu, m68k_sched_attr_opx_type, m68k_sched_attr_opy_type, m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type): Move declarations to ... * config/m68/m68k-protos.h: ... here. --------------050006030407060603040703 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="m68k-v2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="m68k-v2.patch" Content-length: 1450 Index: config/m68k/m68k.h =================================================================== --- config/m68k/m68k.h (revision 184625) +++ config/m68k/m68k.h (working copy) @@ -1148,10 +1148,3 @@ extern M68K_CONST_METHOD m68k_const_meth extern void m68k_emit_move_double (rtx [2]); -extern enum attr_cpu m68k_sched_cpu; - -extern enum attr_opx_type m68k_sched_attr_opx_type (rtx, int); -extern enum attr_opy_type m68k_sched_attr_opy_type (rtx, int); -extern int m68k_sched_attr_size (rtx); -extern enum attr_op_mem m68k_sched_attr_op_mem (rtx); -extern enum attr_type m68k_sched_branch_type (rtx); Index: config/m68k/m68k-protos.h =================================================================== --- config/m68k/m68k-protos.h (revision 184625) +++ config/m68k/m68k-protos.h (working copy) @@ -65,6 +65,16 @@ extern int emit_move_sequence (rtx *, en extern bool m68k_movem_pattern_p (rtx, rtx, HOST_WIDE_INT, bool); extern const char *m68k_output_movem (rtx *, rtx, HOST_WIDE_INT, bool); +#ifdef HAVE_ATTR_cpu +extern enum attr_cpu m68k_sched_cpu; + +extern enum attr_opx_type m68k_sched_attr_opx_type (rtx, int); +extern enum attr_opy_type m68k_sched_attr_opy_type (rtx, int); +extern int m68k_sched_attr_size (rtx); +extern enum attr_op_mem m68k_sched_attr_op_mem (rtx); +extern enum attr_type m68k_sched_branch_type (rtx); +#endif /* HAVE_ATTR_cpu */ + #endif /* RTX_CODE */ extern bool m68k_regno_mode_ok (int, enum machine_mode); --------------050006030407060603040703--