From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6774 invoked by alias); 21 May 2014 23:58:20 -0000 Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org Received: (qmail 6750 invoked by uid 89); 21 May 2014 23:58:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pb0-f54.google.com Received: from mail-pb0-f54.google.com (HELO mail-pb0-f54.google.com) (209.85.160.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 21 May 2014 23:58:17 +0000 Received: by mail-pb0-f54.google.com with SMTP id jt11so1872949pbb.41 for ; Wed, 21 May 2014 16:58:16 -0700 (PDT) X-Received: by 10.68.134.169 with SMTP id pl9mr62569134pbb.133.1400716696253; Wed, 21 May 2014 16:58:16 -0700 (PDT) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPSA id ck10sm111430136pac.0.2014.05.21.16.58.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 16:58:15 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 01357EA2899; Thu, 22 May 2014 09:28:10 +0930 (CST) Date: Wed, 21 May 2014 23:58:00 -0000 From: Alan Modra To: Stefan Kristiansson Cc: Peter Gavin , "Maciej W. Rozycki" , Christian Svensson , binutils@sourceware.org, cgen@sourceware.org Subject: Re: or1k/opcodes: ISO C version compatibility issues Message-ID: <20140521235810.GY5162@bubble.grove.modra.org> Mail-Followup-To: Stefan Kristiansson , Peter Gavin , "Maciej W. Rozycki" , Christian Svensson , binutils@sourceware.org, cgen@sourceware.org References: <20140521215549.GA22614@chokladfabriken.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140521215549.GA22614@chokladfabriken.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-q2/txt/msg00004.txt.bz2 On Thu, May 22, 2014 at 12:55:50AM +0300, Stefan Kristiansson wrote: > On Wed, May 21, 2014 at 04:47:20PM -0400, Peter Gavin wrote: > > On Wed, May 21, 2014 at 4:44 PM, Maciej W. Rozycki > > wrote: > > > > > (also for or1k-desc.c). I have been able to make the files compile with > > > the change below, however these are generated files and a suitable change > > > would have to be applied to cpu/or1kcommon.cpu instead. Unfortunately > > > that source has been written in Scheme that I have no immediate skills to > > > correct. Would you please look into making the correct update to the > > > Scheme source? > > > > > > > I think this is actually a bug in CGEN, and needs to be changed there. > > > > Without claiming any scheme skills, I think something like the patch below > should do it. See also https://sourceware.org/ml/binutils/2014-05/msg00173.html -- Alan Modra Australia Development Lab, IBM