This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to remove putenv definition from gcc.c
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: Patch to remove putenv definition from gcc.c
- From: "Zack Weinberg" <zackw at Stanford dot EDU>
- Date: Wed, 28 Mar 2001 15:04:36 -0800
- Cc: ghazi at caip dot rutgers dot edu, gcc-patches at gcc dot gnu dot org
- References: <20010328141601.G218@stanford.edu> <200103282233.RAA12620@hiauly1.hia.nrc.ca>
On Wed, Mar 28, 2001 at 05:33:17PM -0500, John David Anglin wrote:
> > There was talk of revising collect2's interface so it didn't use
> > environment variables anymore. If that ever happens, we wouldn't need
> > putenv from gcc.c.
>
> That's a good idea because the size of gcc's environment exceeds POSIX
> minimums and causes trouble for systems with small ARG_MAX limits. This
> caused exec failures under ultrix in the bootstrap. The problem was
> resolved by hacking gnu make so it didn't export variables by default
> and a small change to the gcc Makefile. However, gcc still exports
> too much.
A naive change will just move all that data to the argument vector;
it may still be too big.
zw