This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to remove putenv definition from gcc.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]