powerpc switches

Nathan Sidwell nathan@codesourcery.com
Fri Jan 17 17:38:00 GMT 2003


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.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org




More information about the Gcc-patches mailing list