Patch to remove putenv definition from gcc.c

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Tue Mar 27 15:08:00 GMT 2001


 > From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
 > 
 > > We redundantly define putenv in gcc.c, we should use the putenv in
 > > libiberty if needed.  Patch tested on solaris2.7, no regressions.
 > > 
 > > Ok to install?
 > > 
 > >                 --Kaveh
 > > 
 > > 
 > > 2001-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 > > 
 > > 	* configure.in: Don't check for putenv.
 > > 	* configure: Regenerate.
 > > 	* gcc.c (putenv): Don't define.
 > 
 > 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.

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?

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions



More information about the Gcc-patches mailing list