This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/64349] [5 Regression] Bootstrapping Ada fails on darwin(9|10).
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Jan 2015 11:03:03 +0000
- Subject: [Bug ada/64349] [5 Regression] Bootstrapping Ada fails on darwin(9|10).
- Auto-submitted: auto-generated
- References: <bug-64349-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64349
--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I have bootstrapped x86_64-apple-darwin10 with the patch. Any plan to commit it
soon?
Thanks,
Dominique
> Le 27 janv. 2015 Ã 04:00, demoonlit at panathenaia dot halfmoon.jp <gcc-bugzilla@gcc.gnu.org> a Ãcrit :
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64349
>
> yuta tomino <demoonlit at panathenaia dot halfmoon.jp> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |demoonlit at panathenaia dot halfm
> | |oon.jp
>
> --- Comment #10 from yuta tomino <demoonlit at panathenaia dot halfmoon.jp> ---
> Please move #ifdef in the correct order.
>
> --- a/gcc/ada/env.c
> +++ b/gcc/ada/env.c
> @@ -44,12 +44,6 @@
> #include <stdlib.h>
> #endif
>
> -#if defined (__APPLE__) && !defined (__arm__)
> -/* On Darwin, _NSGetEnviron must be used for shared libraries; but it is not
> - available on iOS. */
> -#include <crt_externs.h>
> -#endif
> -
> #if defined (__vxworks)
> #if defined (__RTP__)
> /* On VxWorks 6 Real-Time process mode, environ is defined in unistd.h.
> */
> @@ -78,6 +72,12 @@
> #include "system.h"
> #endif /* IN_RTS */
>
> +#if defined (__APPLE__) && !defined (__arm__)
> +/* On Darwin, _NSGetEnviron must be used for shared libraries; but it is not
> + available on iOS. */
> +#include <crt_externs.h>
> +#endif
> +
> #ifdef __cplusplus
> extern "C" {
> #endif
> @@ -215,11 +215,11 @@ __gnat_environ (void)
> #elif defined (sun)
> extern char **_environ;
> return _environ;
> +#elif defined (__APPLE__) && !defined (__arm__)
> + return *_NSGetEnviron ();
> #elif ! (defined (__vxworks))
> extern char **environ;
> return environ;
> -#elif defined (__APPLE__) && !defined (__arm__)
> - return *_NSGetEnviron ();
> #else
> return environ;
> #endif
>
> --
> You are receiving this mail because:
> You reported the bug.