From patchwork Wed Apr 4 18:08:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 150777 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]) by ozlabs.org (Postfix) with SMTP id 4E8D4B7028 for ; Thu, 5 Apr 2012 04:08:38 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1334167719; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=SQySXlE ndeP1Edw8nnjWPGfqxt0=; b=s6MTbSNtJyaZ209k8eB3aW8VDUGzOPZCM5tneeb UvRTSC41+CMOJNqcN+D3WyexDyZ0/gQZwvwHMUw4+yP5mIQBzGEgJ6gkFTDdAmEu unDgPc/Jpk9VTzjMiN0fuKffi1zYyPKqn1gWxWnxLI4qC1nSXvUAYpILRlx2Bo9H 59v0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=YxfcrlMjZ8JspqxkzgWdyGbdx+KsdxGSt49wOOczXpf2p8GiRCL6mwnZQvI6ga 8103uMloHXt0tji/y9dvlx+xgbJcLhFKiMbq6lg2+iiX48N52YMWrIBMaGvHOcp2 3SUAgcj6T/1DaKlAHpwOd7kHmXl5QeyTHthRc1M85AOyA=; Received: (qmail 24894 invoked by alias); 4 Apr 2012 18:08:31 -0000 Received: (qmail 24886 invoked by uid 22791); 4 Apr 2012 18:08:30 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Apr 2012 18:08:17 +0000 Received: by yenm3 with SMTP id m3so363162yen.20 for ; Wed, 04 Apr 2012 11:08:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.134.211 with SMTP id s59mr15738526yhi.131.1333562895789; Wed, 04 Apr 2012 11:08:15 -0700 (PDT) Received: by 10.146.124.5 with HTTP; Wed, 4 Apr 2012 11:08:15 -0700 (PDT) Date: Wed, 4 Apr 2012 20:08:15 +0200 Message-ID: Subject: Re: PATCH: Define TRY_EMPTY_VM_SPACE for Linux/x32 From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: "H.J. Lu" 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 Hello! > This patch defines TRY_EMPTY_VM_SPACE for Linux/x32. Tested on Linux/x32. > OK for trunk? > > 2012-04-03 H.J. Lu > > * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to > 0x60000000 for x32. I think we can simply check for __LP64__, without version check, as is the case with SPARC and MIPS targets. Uros. Index: host-linux.c =================================================================== --- host-linux.c (revision 186141) +++ host-linux.c (working copy) @@ -68,8 +68,10 @@ # define TRY_EMPTY_VM_SPACE 0x10000000000 #elif defined(__ia64) # define TRY_EMPTY_VM_SPACE 0x2000000100000000 +#elif defined(__x86_64) && defined(__LP64__) +# define TRY_EMPTY_VM_SPACE 0x1000000000 #elif defined(__x86_64) -# define TRY_EMPTY_VM_SPACE 0x1000000000 +# define TRY_EMPTY_VM_SPACE 0x60000000 #elif defined(__i386) # define TRY_EMPTY_VM_SPACE 0x60000000 #elif defined(__powerpc__)