public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/27366]  New: ada build fails as cygwin does not have clearenv
@ 2006-05-01  5:55 billingd at gcc dot gnu dot org
  2006-05-02  3:46 ` [Bug ada/27366] " billingd at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-05-01  5:55 UTC (permalink / raw)
  To: gcc-bugs

cygwin does not have the clearenv function, so ada compliation dies in
ada/env.c.  Testing a patch to use unsetenv path.


-- 
           Summary: ada build fails as cygwin does not have clearenv
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: billingd at gcc dot gnu dot org
        ReportedBy: billingd at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27366


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/27366] ada build fails as cygwin does not have clearenv
  2006-05-01  5:55 [Bug ada/27366] New: ada build fails as cygwin does not have clearenv billingd at gcc dot gnu dot org
@ 2006-05-02  3:46 ` billingd at gcc dot gnu dot org
  2006-05-02  8:46 ` charlet at adacore dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-05-02  3:46 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/27366] ada build fails as cygwin does not have clearenv
  2006-05-01  5:55 [Bug ada/27366] New: ada build fails as cygwin does not have clearenv billingd at gcc dot gnu dot org
  2006-05-02  3:46 ` [Bug ada/27366] " billingd at gcc dot gnu dot org
@ 2006-05-02  8:46 ` charlet at adacore dot com
  2006-05-02 11:38 ` billingd at gcc dot gnu dot org
  2006-05-02 11:45 ` billingd at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: charlet at adacore dot com @ 2006-05-02  8:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from charlet at adacore dot com  2006-05-02 08:46 -------
Subject: Re:  ada build fails as cygwin does not have clearenv

> Here is the patch I tested.  acats results below aren't a total disaster.

Patch looks reasonable to me, you have my OK.

Note that patches should be posted to gcc-patches@

Arno


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27366


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/27366] ada build fails as cygwin does not have clearenv
  2006-05-01  5:55 [Bug ada/27366] New: ada build fails as cygwin does not have clearenv billingd at gcc dot gnu dot org
  2006-05-02  3:46 ` [Bug ada/27366] " billingd at gcc dot gnu dot org
  2006-05-02  8:46 ` charlet at adacore dot com
@ 2006-05-02 11:38 ` billingd at gcc dot gnu dot org
  2006-05-02 11:45 ` billingd at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-05-02 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from billingd at gcc dot gnu dot org  2006-05-02 11:38 -------
Subject: Bug 27366

Author: billingd
Date: Tue May  2 11:38:35 2006
New Revision: 113457

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113457
Log:
2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>

         PR ada/27366
         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear
         environment on Cygwin.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ada/env.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27366


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/27366] ada build fails as cygwin does not have clearenv
  2006-05-01  5:55 [Bug ada/27366] New: ada build fails as cygwin does not have clearenv billingd at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-02 11:38 ` billingd at gcc dot gnu dot org
@ 2006-05-02 11:45 ` billingd at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: billingd at gcc dot gnu dot org @ 2006-05-02 11:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from billingd at gcc dot gnu dot org  2006-05-02 11:45 -------
Fixed in revision 113457.  clearenv is not used by ada in 4.1


-- 

billingd at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27366


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-02 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-01  5:55 [Bug ada/27366] New: ada build fails as cygwin does not have clearenv billingd at gcc dot gnu dot org
2006-05-02  3:46 ` [Bug ada/27366] " billingd at gcc dot gnu dot org
2006-05-02  8:46 ` charlet at adacore dot com
2006-05-02 11:38 ` billingd at gcc dot gnu dot org
2006-05-02 11:45 ` billingd at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).