public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jack Howarth <howarth@bromo.med.uc.edu>
To: Iain Sandoe <developer@sandoe-acoustics.co.uk>
Cc: Arnaud Charlet <charlet@adacore.com>,
	       GCC Patches <gcc-patches@gcc.gnu.org>,
	Mike Stump <mrs@gcc.gnu.org>
Subject: Re: [Patch, Ada, Darwin] Fix bootstrap issue on Darwin8.
Date: Mon, 05 Sep 2011 20:38:00 -0000	[thread overview]
Message-ID: <20110905203843.GA25463@bromo.med.uc.edu> (raw)
In-Reply-To: <248AD3A8-8084-483D-B807-09C23D1ACDF6@sandoe-acoustics.co.uk>

On Mon, Sep 05, 2011 at 08:26:49PM +0100, Iain Sandoe wrote:
> Hi Arno,
>
> On 5 Sep 2011, at 20:04, Arnaud Charlet wrote:
>
>>> Darwin8 does not have _SC_NPROCESSORS_ONLN defined.
>>
>> Is Darwin8 still active/supported?
>
> it works - and I test from time to time.
> .. feedback from fink in the form of bug reports suggests that it is  
> still being used in the wild too.

FYI, fink has moved darwin8 package support into a 10.4-EOL tree and developers
are no longer obligated to insure that fink packages build under darwin8.
Basically almost all of the fink developers just wish darwin8 would go away.
           Jack

>
> In fact, the tortuous route I used to get to a working PPC ADA bootstrap 
> was via a native-X darwin 8 compiler built on linux ;-)
> (Now I know the problem with the PPC bootstrap it's easier to do a  
> native X from i686-darwin, but I was debugging).
>
> ----
>
> The policy we have adopted is not to break earlier Darwin if possible -
> (bearing in mind that Darwin is volunteer-supported these days and we  
> have scant resources).
>
> However, FWIW, It is possible to build 4.6 even on Darwin 7 with some  
> fiddling (odcctools) ...
>
> [ However, I'm not going to nail my colors to the mast over this one ;-) 
> ]
>
>> Not as submitted, you haven't provided a suitable changelog for  
>> review.
>
> oops... apologies (and for the long lines in the other change logs)
> ... shouldn't type them directly into the mailer I suppose.
>
> ada:
> 	
> 	* adaint.c (__gnat_number_of_cpus): Don't try to check
> 	_SC_NPROCESSORS_ONLN for early versions of Darwin.
>
>> Also, when you repost your patch, can you please send a single version 
>> of
>> the patch (either inline or as an attachment)? TIA.
>
> The reason for duplication was that some people prefer one and some the 
> other ..
> .. plus mailers sometimes mangle in-line patches;
>
> OK for trunk/4.6?
> Iain
>

> Index: gcc/ada/adaint.c
> ===================================================================
> --- gcc/ada/adaint.c	(revision 178554)
> +++ gcc/ada/adaint.c	(working copy)
> @@ -2460,7 +2460,10 @@ __gnat_number_of_cpus (void)
>    int cores = 1;
>  
>  #if defined (linux) || defined (sun) || defined (AIX) \
> -    || (defined (__alpha__)  && defined (_osf_)) || defined (__APPLE__)
> +    || (defined (__alpha__)  && defined (_osf_)) \
> +    || (defined (__APPLE__) \
> +        && defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
> +        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050)
>    cores = (int) sysconf (_SC_NPROCESSORS_ONLN);
>  
>  #elif (defined (__mips) && defined (__sgi))

>
>
>

      reply	other threads:[~2011-09-05 20:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-05 18:51 Iain Sandoe
2011-09-05 19:05 ` Arnaud Charlet
2011-09-05 19:27   ` Iain Sandoe
2011-09-05 20:38     ` Jack Howarth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110905203843.GA25463@bromo.med.uc.edu \
    --to=howarth@bromo.med.uc.edu \
    --cc=charlet@adacore.com \
    --cc=developer@sandoe-acoustics.co.uk \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mrs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).