Removed the use of the environ variable and instead use the environment array
authorJohn Criswell <criswell@uiuc.edu>
Wed, 17 Sep 2003 15:20:51 +0000 (15:20 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Wed, 17 Sep 2003 15:20:51 +0000 (15:20 +0000)
commit621727c29ead58158121f52e5a8f66d14bb0d4c8
tree7afa5482d3614c2e8e6a0d475330bd4dae5d35d3
parente9ba8b36740f46ba1a7a68706cafda1df1d2ca74
Removed the use of the environ variable and instead use the environment array
passed into main().  This may (or may not) be more portable, but it looks
nicer.
Added functions to copy the environment array and modify the copy, thus
preserving the environment.
Switched from using system() to using ExecWait().
The code now removes the assembly file generated when using the -native option.
Fixed the remove_env() function: The previous revision truncated the
environment variable list.  This version just zaps the variable as intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8579 91177308-0d34-0410-b5e6-96231b3b80d8
tools/gccld/gccld.cpp