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: ghazi at caip dot rutgers dot edu (Kaveh R. Ghazi)
- Subject: Re: Patch to remove putenv definition from gcc.c
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 28 Mar 2001 14:17:53 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> > The last change will cause further VMS breakage. The libiberty
> > version of putenv isn't suitable for VMS. The putenv defined in
> > gcc.c was a nop for VMS and this behavior is lost with your patch.
> > Dave
>
> The alpha/xm-vms.h port hardcodes #define HAVE_PUTENV, so as currently
> written, gcc.c won't define putenv() at all. Somehow its already
> working there without the NOP.
VAX C for OpenVMS version 5.0 (circa 1995) doesn't have putenv. I don't have
access to any later documentation.
> My understanding from previous posts is that the vax vms port is
> broken and whoever wants to resurrect it will have to start with the
> alpha one (or from scratch) anyway.
>
> With this in mind, do you still object?
I suggest retaining a do nothing version of putenv for VMS in gcc.c. For
example,
/* FIXME: Old versions of VAX C for VMS don't have putenv. */
#if ! defined(HAVE_PUTENV) && defined(VMS)
void
putenv (str)
char *str;
{
}
#endif
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)