powerpc switches
Aldy Hernandez
aldyh@redhat.com
Fri Jan 17 18:45:00 GMT 2003
On Fri, Jan 17, 2003 at 05:38:11PM +0000, Nathan Sidwell wrote:
> Aldy Hernandez wrote:
> >> if (rs6000_cpu == PROCESSOR_PPC8540)
> >>! {
> >>! rs6000_isel = 1;
> >>! if (!TARGET_SPE)
> >>! warning ("not configured for spe extensions");
> >>! }
> what do you suggest, a completely separate test?
> if (cpu == 8540 && !target_spe)
> warning (...)
> without something like that you get a confusing
> 'implicit declaration of '__builtin_spe_whatever''
> if you've remembered to -Wall. Without -Wall, you get an
> even worse type mismatch, as the return type defaults to int.
>
Ah, silly me. Ok, I misread the original patch.
Yes, this is OK.
Thanks.
Aldy
More information about the Gcc-patches
mailing list