From patchwork Fri Mar 27 10:50:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Lawrence X-Patchwork-Id: 455379 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 CC90A14008F for ; Fri, 27 Mar 2015 21:50:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=UD+18E4E; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=HMCaqyDalijeYYm6jqJOiyy3T22pn7PlSpP7kJPTMJquEe +YOJrsZk+4REhNbbY0ArSBrLYTKuVgqfPqTCc3DVVjjq8Hvw5+Ecgbhs7zJ0a+7J +GTBkANuN2nDpaDdF8uaJb2Og+lMA3cBUXji4+iQWsFDzL8iUghuq5YlWfW7Y= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=VCR9aPv6xcsftID7U7AyoNA06pE=; b=UD+18E4Eqkak6gvr6f7N W0sjy/RZcksyyILJ6LZsT0jVwIkhpG/ikbpmP83Qod0cwpzC4yDj8OhoAcRXRnm4 QBe+J+ITyVJ/qSOhPU27cIXkwTnWw0ICy4XNixgy24LE13ud6DOtGaHmBd9CBHx7 qlEWtRenbG2skoOAf30WDx8= Received: (qmail 92951 invoked by alias); 27 Mar 2015 10:50:29 -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 92833 invoked by uid 89); 27 Mar 2015 10:50:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Mar 2015 10:50:27 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-2.uk.mimecast.lan; Fri, 27 Mar 2015 10:50:24 +0000 Received: from [10.2.207.65] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 27 Mar 2015 10:50:23 +0000 Message-ID: <551535EF.908@arm.com> Date: Fri, 27 Mar 2015 10:50:23 +0000 From: Alan Lawrence User-Agent: Thunderbird 2.0.0.24 (X11/20101213) MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [PATCH 4.8][AArch64] Backport r207785 from trunk: Fix PCH on AArch64, (PR pch/60010) X-MC-Unique: BsYofy16Tru0DiQ2q473NA-1 X-IsSubscribed: yes Original post https://gcc.gnu.org/ml/gcc-patches/2014-01/msg02096.html Tested check-gcc on aarch64-none-linux-gnu (native), fixes all variants of gcc.dg/pch/largefile.c (below). Ok? Cheers, Alan gcc/ChangeLog: Backport r207785 from mainline 2014-01-31 Kyle McMartin PR pch/60010 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64. ----- Tests that now work, but didn't before: gcc.dg/pch/largefile.c -O0 assembly comparison gcc.dg/pch/largefile.c -O1 assembly comparison gcc.dg/pch/largefile.c -O2 assembly comparison gcc.dg/pch/largefile.c -O3 -fomit-frame-pointer assembly comparison gcc.dg/pch/largefile.c -O3 -g assembly comparison gcc.dg/pch/largefile.c -Os assembly comparison gcc.dg/pch/largefile.c -O0 -g assembly comparison largefile.c -O0 -I. -Dwith_PCH (test for excess errors) largefile.c -O1 -I. -Dwith_PCH (test for excess errors) largefile.c -O2 -I. -Dwith_PCH (test for excess errors) largefile.c -O3 -fomit-frame-pointer -I. -Dwith_PCH (test for excess errors) largefile.c -O3 -g -I. -Dwith_PCH (test for excess errors) largefile.c -Os -I. -Dwith_PCH (test for excess errors) largefile.c -O0 -g -I. -Dwith_PCH (test for excess errors) Old tests that failed, that have disappeared: (Eeek!) largefile.c -O0 -I. -Dwith_PCH (internal compiler error) largefile.c -O1 -I. -Dwith_PCH (internal compiler error) largefile.c -O2 -I. -Dwith_PCH (internal compiler error) largefile.c -O3 -fomit-frame-pointer -I. -Dwith_PCH (internal compiler error) largefile.c -O3 -g -I. -Dwith_PCH (internal compiler error) largefile.c -Os -I. -Dwith_PCH (internal compiler error) largefile.c -O0 -g -I. -Dwith_PCH (internal compiler error) commit 39f9a388f15e12f43e3f59c314325cc087eab377 Author: Alan Lawrence Date: Tue Mar 10 12:20:12 2015 +0000 Kyle McMartin patch diff --git a/gcc/config/host-linux.c b/gcc/config/host-linux.c index 1f10823..0774ecf 100644 --- a/gcc/config/host-linux.c +++ b/gcc/config/host-linux.c @@ -86,6 +86,8 @@ # define TRY_EMPTY_VM_SPACE 0x60000000 #elif defined(__mc68000__) # define TRY_EMPTY_VM_SPACE 0x40000000 +#elif defined(__aarch64__) +# define TRY_EMPTY_VM_SPACE 0x1000000000 #elif defined(__ARM_EABI__) # define TRY_EMPTY_VM_SPACE 0x60000000 #elif defined(__mips__) && defined(__LP64__)