From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21248 invoked by alias); 19 Nov 2010 09:15:51 -0000 Received: (qmail 21239 invoked by uid 22791); 19 Nov 2010 09:15:50 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,TW_SV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fanny.its.uu.se (HELO fanny.its.uu.se) (130.238.4.241) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Nov 2010 09:15:45 +0000 Received: from fanny.its.uu.se (localhost [127.0.0.1]) by fanny.its.uu.se (Postfix) with ESMTP id 88D6F644F for ; Fri, 19 Nov 2010 10:15:42 +0100 (MEZ) Received: from pilspetsen.it.uu.se (pilspetsen.it.uu.se [130.238.18.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fanny.its.uu.se (Postfix) with ESMTP id 2A40061DD for ; Fri, 19 Nov 2010 10:15:42 +0100 (MEZ) Received: (from mikpe@localhost) by pilspetsen.it.uu.se (8.14.4+Sun/8.14.4) id oAJ9FfSO013434; Fri, 19 Nov 2010 10:15:41 +0100 (MET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19686.16445.667251.461151@pilspetsen.it.uu.se> Date: Fri, 19 Nov 2010 11:45:00 -0000 From: Mikael Pettersson To: gcc-patches@gcc.gnu.org Subject: [Ping][PATCH] fix PR pch/45979 regression on recent ARM/Linux kernels In-Reply-To: <19655.8672.504570.850812@pilspetsen.it.uu.se> References: <19655.8672.504570.850812@pilspetsen.it.uu.se> 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: 2010-11/txt/msg02008.txt.bz2 Ping for http://gcc.gnu.org/ml/gcc-patches/2010-10/msg02252.html If it helps: I hereby place this patch in the public domain. On Tue, 26 Oct 2010 20:45:52 +0200, Mikael Pettersson wrote: > Post 2.6.35 ARM/Linux kernels now randomize mmap() by default, > which breaks precompiled headers. See PR pch/45979. > > Fixed by supplying an explicit hint for a likely free area > in the address space for precompiled headers to use, similar > to what has already been done for many other Linux archs. > Based on observation from several largish processes on an > arm-linux-gnueabi machine, 0xa0000000 seems to be a good > choice: it's just under the stack and at the end of a large > area populated by shared libraries. > > Tested with gcc-4.6/4.5/4.4 on arm-linux-gnueabi running > 2.6.36-rcN kernels. Fixed all pch testsuite failures, with > no new regressions. > > Ok for trunk/4.5/4.4? (I don't havn svn write access.) > > gcc/ > > 2010-10-26 Mikael Pettersson > > PR pch/45979 > * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __ARM_EABI__. > > --- gcc-4.6-20101009/gcc/config/host-linux.c.~1~ 2009-02-20 16:20:38.000000000 +0100 > +++ gcc-4.6-20101009/gcc/config/host-linux.c 2010-10-13 15:24:28.000000000 +0200 > @@ -86,6 +86,8 @@ > # define TRY_EMPTY_VM_SPACE 0x60000000 > #elif defined(__mc68000__) > # define TRY_EMPTY_VM_SPACE 0x40000000 > +#elif defined(__ARM_EABI__) > +# define TRY_EMPTY_VM_SPACE 0xa0000000 > #else > # define TRY_EMPTY_VM_SPACE 0 > #endif