From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13830 invoked by alias); 23 Jun 2015 12:10:45 -0000 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 Received: (qmail 13813 invoked by uid 89); 23 Jun 2015 12:10:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,KAM_ASCII_DIVIDERS,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 23 Jun 2015 12:10:44 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id DFAAE19F995 for ; Tue, 23 Jun 2015 12:10:42 +0000 (UTC) Received: from [10.36.7.107] (vpn1-7-107.ams2.redhat.com [10.36.7.107]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5NCAfqv018640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 23 Jun 2015 08:10:42 -0400 Message-ID: <55894CC0.3010204@redhat.com> Date: Tue, 23 Jun 2015 12:22:00 -0000 From: Nicholas Clifton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: GCC Patches Subject: RFA: FT32: Fix building gcc. Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg01536.txt.bz2 Hi Guys, It seems that the FT32 port of GCC does not have a maintainer at the moment. Nevertheless I have a patch to fix a couple of build time problems compiling gcc for the FT32. Is this OK to apply ? Cheers Nick gcc/ChangeLog 2015-06-23 Nick Clifton * config/ft32/ft32.c: Include emit-rtl.h for the definition of crtl. (ft32_print_operand): Cast the result of INTVAL in order to make sure that the correct value is printed. * config/ft32/ft32.h (STACK_GROWS_DOWNWARD): Define to an integer. Index: gcc/config/ft32/ft32.c =================================================================== --- gcc/config/ft32/ft32.c (revision 224834) +++ gcc/config/ft32/ft32.c (working copy) @@ -59,8 +59,8 @@ #include "basic-block.h" #include "df.h" #include "builtins.h" +#include "emit-rtl.h" - #include #define LOSE_AND_RETURN(msgid, x) \ @@ -199,7 +199,7 @@ return; case 'm': - fprintf (file, "%d", -INTVAL(x)); + fprintf (file, "%ld", (long) (- INTVAL(x))); return; case 'd': // a DW spec, from an integer alignment (for BLKmode insns) Index: gcc/config/ft32/ft32.h =================================================================== --- gcc/config/ft32/ft32.h (revision 224834) +++ gcc/config/ft32/ft32.h (working copy) @@ -248,7 +248,7 @@ /* Define this macro if pushing a word onto the stack moves the stack pointer to a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define INITIAL_FRAME_POINTER_OFFSET(DEPTH) (DEPTH) = 0