From patchwork Sat Nov 7 08:11:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 541232 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 580D21409A0 for ; Sat, 7 Nov 2015 19:12:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=cRNpgily; 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:date :from:to:subject:message-id:mime-version:content-type :in-reply-to; q=dns; s=default; b=ybZMBM+CEa9v12MQaR2VdNExvYWNJ6 UxQYl9xIZE+yqe8NgbL+UJtgRMvLKnUsMWeD5AODPY4c+0qOxzdadj3yxH1KDfOb Adr+/rGfMG+5YU8LJmp3I8h0vL/g6DQ8AApONjrt55dDmf/48PGyaP0Zjw/9gk9Y eGN7onXNzvFog= 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:date :from:to:subject:message-id:mime-version:content-type :in-reply-to; s=default; bh=YCWyIOPn4OhDppHWXMp5bK0tqs0=; b=cRNp gilymQ5H7EaCeBVXtm+fgiuS8MHU0dy9+0Gjs9H0qHHIj8cYKYb8ApAUuyjqqYFx zWOWV6RacBhDyiwsYg6sWP4PU2XJ+ZECFn6sl+zC/eCiW3BC2OtgWT4zTGxyzXsC umcELWm5thThRFbjyDPr1TnlvE351noe0Xqyn1w= Received: (qmail 16744 invoked by alias); 7 Nov 2015 08:12:06 -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 16695 invoked by uid 89); 7 Nov 2015 08:12:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f44.google.com Received: from mail-pa0-f44.google.com (HELO mail-pa0-f44.google.com) (209.85.220.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 07 Nov 2015 08:12:04 +0000 Received: by padhx2 with SMTP id hx2so137827435pad.1 for ; Sat, 07 Nov 2015 00:12:02 -0800 (PST) X-Received: by 10.66.100.166 with SMTP id ez6mr23982097pab.49.1446883922351; Sat, 07 Nov 2015 00:12:02 -0800 (PST) Received: from bubble.grove.modra.org (CPE-58-160-163-67.gqzg1.fli.bigpond.net.au. [58.160.163.67]) by smtp.gmail.com with ESMTPSA id uy1sm4194094pac.39.2015.11.07.00.12.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Nov 2015 00:12:01 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 68EDCEA1530; Sat, 7 Nov 2015 18:41:58 +1030 (ACDT) Date: Sat, 7 Nov 2015 18:41:58 +1030 From: Alan Modra To: gcc-patches@gcc.gnu.org Subject: [PATCH 7/7] Configury changes for obstack optimization Message-ID: <20151107081158.GH17177@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20151107080609.GA17177@bubble.grove.modra.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes Provides defines used to determine whether glibc obstacks are compatible. Generally speaking, 32-bit targets won't need to use obstack.o from libiberty if glibc is used, while 64-bit targets will, until glibc gets the new obstack code. * configure.ac: Check size of size_t. * configure: Regenerate. diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 868be8e..1ab5235 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -276,6 +276,7 @@ libiberty_AC_DECLARE_ERRNO # Determine sizes of some types. AC_CHECK_SIZEOF([int]) AC_CHECK_SIZEOF([long]) +AC_CHECK_SIZEOF([size_t]) # Check for presense of long long AC_CHECK_TYPE([long long],