bootstrap/10129 (Was: GCC Release Status (2003-06-20))

Mike Stump mrs@apple.com
Tue Jun 24 01:35:00 GMT 2003


On Saturday, June 21, 2003, at 05:20 AM, Geert Bosch wrote:
> On Saturday, Jun 21, 2003, at 00:40 America/New_York, Andrew Pinski 
> wrote:
>> I do not know if this is an acceptable work around or not but it
>> should help to at least getting bootstrap back working.
>
> Yes, any workaround would be great. If we can't get a proper fix for
> GCC 3.3.1, we probably should add some configuration magic that will
> set -mdynamic-no-pic for the Ada front end.
>
> I'll try an Ada bootstrap later this weekend with -mdynamic-no-pic
> and will report back.

Actually, I hate the fact that -mdynamic-no-pic covers up this problem, 
but, that flag is good to use anyway (for all program compiles, not for 
any shared library code, or code that might go into a shared library).

We did this locally, by putting:

# APPLE LOCAL -mdynamic-no-pic for host programs for speed
XCFLAGS = -mdynamic-no-pic

into config/rs6000/x-darwin

and arranging for that to be used.  You can try that solution out and 
see if it works for you in the Ada world...


A better solution, would be to autoconf this, as older compilers do not 
have this flag.  Though, I've been having my doubts that autoconf is a 
saviour.  When bootstrap speeds 98%+ of the time in /bin/sh, I think 
we've done something wrong, and we are well on our way to achieving 
that goal.



More information about the Gcc mailing list