From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26868 invoked by alias); 2 May 2006 03:46:09 -0000 Received: (qmail 26854 invoked by uid 48); 2 May 2006 03:46:05 -0000 Date: Tue, 02 May 2006 03:46:00 -0000 Message-ID: <20060502034605.26853.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/27366] ada build fails as cygwin does not have clearenv In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "billingd at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00077.txt.bz2 List-Id: ------- Comment #1 from billingd at gcc dot gnu dot org 2006-05-02 03:46 ------- Here is the patch I tested. acats results below aren't a total disaster. 2006-01-05 David Billinghurst (David.Billinghurst@riotinto.com) PR ada/27366 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment on Cygwin. Index: env.c =================================================================== --- env.c (revision 113408) +++ env.c (working copy) @@ -288,7 +288,7 @@ index++; } #elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \ - || (defined (__vxworks) && defined (__RTP__)) + || (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__) /* On Windows, FreeBSD and MacOS there is no function to clean all the environment but there is a "clean" way to unset a variable. So go through the environ table and call __gnat_unsetenv on all entries */ === acats Summary === # of expected passes 1924 # of unexpected failures 37 # of unsupported tests 356 *** FAILURES: c23003b c23003g c23003i c35507m c62003a c62003b c64103e c64103f c6 4104i c64104j c64104k c64104l c64104m c64104n c96005d cb4001a cc3017c cc3120a cd 2a23e cdd2a02 cxg2002 cxg2003 cxg2004 cxg2006 cxg2007 cxg2010 cxg2011 cxg2012 cx g2013 cxg2014 cxg2015 cxg2016 cxg2017 cxg2018 cxg2019 cxg2020 cxg2021 -- billingd at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-05-02 03:46:05 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27366