This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch Darwin/PPC] make sure rs6000_current_abi is defined early enough.
- From: Richard Henderson <rth at redhat dot com>
- To: Iain Sandoe <developer at sandoe-acoustics dot co dot uk>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Mike Stump <mrs at gcc dot gnu dot org>
- Date: Mon, 05 Dec 2011 09:21:30 -0800
- Subject: Re: [Patch Darwin/PPC] make sure rs6000_current_abi is defined early enough.
- References: <6E08B20A-0B50-443B-8170-C959F9AC2682@sandoe-acoustics.co.uk>
On 12/05/2011 01:11 AM, Iain Sandoe wrote:
> in http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00312.html
> I wrote:
>
> where is "_CALL_DARWIN" supposed to come from? (it is not defined by the preprocessor AFAICT).
>
> ===
>
> it seems that we don't define rs6000_current_abi before cpp builtins
> are emitted and the function uses it to decide to emit _CALL_DARWIN.
>
> fixed as below,
> OK for trunk?
> (what opinion of 4.6?)
>
> Iain
>
> gcc:
>
> * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
> rs6000_current_abi.
Ok everywhere.
r~