This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] drop MAXPATHLEN dependency from gcc/tlink.c
- From: Ian Lance Taylor <iant at google dot com>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 31 Jul 2007 18:38:24 -0700
- Subject: Re: [PATCH] drop MAXPATHLEN dependency from gcc/tlink.c
- References: <20070724203941.GE3700@interface.famille.thibault.fr>
Samuel Thibault <samuel.thibault@ens-lyon.org> 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 <samuel.thibault@ens-lyon.org>
>
> * 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