------- 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 ([EMAIL PROTECTED])

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

Reply via email to