This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: powerpc switches


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]