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 14:16:01 -0800
- Cc: ghazi at caip dot rutgers dot edu, gcc-patches at gcc dot gnu dot org
- References: <20010328114147.B218@stanford.edu> <200103282130.QAA12496@hiauly1.hia.nrc.ca>
On Wed, Mar 28, 2001 at 04:30:16PM -0500, John David Anglin wrote:
> > Doesn't this mean that collect2 won't work properly with older VAX C?
>
> It looks like it would not be possible to pass options, etc, to collect.
> Thus, it would only run with its defualts.
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.
...
> > I see code in perl5.6 that could probably be stolen (vmssetenv in
> > vms.c), although it does not make a whole lot of sense to me...
>
> Neither to me. It looks like it creates new logical names in the
> process table. I see that perl also replaces getenv.
>
> Your suggestion is a good one but it needs VMS testing to validate.
> Any volunteers?
Won't be me. And VAX/VMS testers will probably have lots more trouble
than just this...
zw