From patchwork Fri Oct 3 10:18:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 396182 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7827314017D for ; Fri, 3 Oct 2014 20:18:49 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=F2N 08XFY0E0a/OYHNVaCuLeyM0vDF10tSzDTpg0kHAEiJn0ed8XPS4L1pJY0TRQ5MM1 UijfAFIGqWSjHWHjw+AX643va45VZDGnjRIF4aqwfS1t9ddMCGcvszzEC/0kW65m 28RaiInFqpDlSB1hwX8GQlSg6UXRIL85H9O0i5+g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=CaG386P8v 690OQlnB/ovPC/hXg4=; b=J88q/KXAQycAoUSW3v6CKZKqkgIYZCoKsP1Biqcwq V+imOq6UygAEVPKmEG4rrSGY1ic8+x2ua8D+9k1IIX7b/lZeaschShGn/w2E5+Gi S0srZ1tt97mxLjla1Nq6HdQi2T2OyNa3u+iGnFiK8x7H11rUbXXVjH4CiIlOXSLi 3w= Received: (qmail 12284 invoked by alias); 3 Oct 2014 10:18:43 -0000 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 Received: (qmail 12272 invoked by uid 89); 3 Oct 2014 10:18:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Oct 2014 10:18:40 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Fri, 03 Oct 2014 11:18:37 +0100 Received: from localhost ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 3 Oct 2014 11:18:36 +0100 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: Re: Fix for "FAIL: tmpdir-gcc.dg-struct-layout-1/t028 c_compat_x_tst.o compile, (internal compiler error)" References: <000001cfd995$c7bcafe0$57360fa0$@arm.com> <8738b9leiv.fsf@e105548-lin.cambridge.arm.com> <87y4t1jreq.fsf@e105548-lin.cambridge.arm.com> <542AB5C5.1030908@arm.com> <000001cfdd49$346d4080$9d47c180$@arm.com> Date: Fri, 03 Oct 2014 11:18:35 +0100 In-Reply-To: <000001cfdd49$346d4080$9d47c180$@arm.com> (David Sherwood's message of "Wed, 1 Oct 2014 08:27:49 +0100") Message-ID: <87h9zljw1w.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: 114100311183708101 "David Sherwood" writes: > Hi Andreas, > > OK, I will fix this. I installed David's patch below as obvious. Tested on x86_64-linux-gnu. Thanks, Richard gcc/ 2014-10-03 David Sherwood * ira-int.h (ira_allocno): Mark hard_regno as signed. Index: gcc/ira-int.h =================================================================== --- gcc/ira-int.h 2014-09-30 09:04:23.602162410 +0100 +++ gcc/ira-int.h 2014-10-03 11:09:21.986634891 +0100 @@ -318,7 +318,7 @@ struct ira_allocno number (0, ...) - 2. Value -1 is used for allocnos spilled by the reload (at this point pseudo-register has only one allocno) which did not get stack slot yet. */ - int hard_regno : 16; + signed int hard_regno : 16; /* Allocnos with the same regno are linked by the following member. Allocnos corresponding to inner loops are first in the list (it corresponds to depth-first traverse of the loops). */