power4 branch hints

Geoff Keating geoffk@geoffk.org
Fri Aug 2 13:25:00 GMT 2002


> cc: gcc-patches@gcc.gnu.org
> Date: Thu, 01 Aug 2002 21:47:01 -0400
> From: David Edelsohn <dje@watson.ibm.com>
> 
> +      int cpu_version1_arch = rs6000_cpu < PROCESSOR_POWER4;
> 
> 	I am extremely conflicted about having a fragile test like the one
> above versus 
> 
> 	int at_hints = (rs6000_cpu == PROCESSOR_POWER4)
> 
> which adds yet another place potentially requiring tweaking for new
> processors. 
> 
> 	Geoff, do you have any preferences?

I think I slightly prefer the second, because the first one depends on
ordering of an enum.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>



More information about the Gcc-patches mailing list