From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 516 invoked by alias); 1 Aug 2007 01:39:46 -0000 Received: (qmail 507 invoked by uid 22791); 1 Aug 2007 01:39:45 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Aug 2007 01:39:44 +0000 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id l711dc1H003464; Tue, 31 Jul 2007 18:39:38 -0700 Received: from smtp.corp.google.com (spacemonkey2.corp.google.com [192.168.120.114]) by zps19.corp.google.com with ESMTP id l711dVle011853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 31 Jul 2007 18:39:32 -0700 Received: from localhost.localdomain.google.com (12.sub-75-211-146.myvzw.com [75.211.146.12]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id l711dOrF029770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 31 Jul 2007 18:39:30 -0700 To: Samuel Thibault Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] drop MAXPATHLEN dependency from gcc/tlink.c References: <20070724203941.GE3700@interface.famille.thibault.fr> From: Ian Lance Taylor Date: Wed, 01 Aug 2007 01:39:00 -0000 In-Reply-To: <20070724203941.GE3700@interface.famille.thibault.fr> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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: 2007-08/txt/msg00003.txt.bz2 Samuel Thibault writes: > Some systems don't define MAXPATHLEN because they don't have such hard > limit. Here is a patch against gcc/tlink.c to take benefit of this. > > Samuel > > 2007-07-24 Samuel Thibault > > * gcc/tlink.c (initial_cwd): Change type into char*. > (tlink_init): Add loop to dynamically allocate initial_cwd as needed. Just call getpwd instead. Thanks. Ian