removing ctr branches from rs6000

Dale Johannesen dalej@apple.com
Tue Nov 26 12:36:00 GMT 2002


On Tuesday, November 26, 2002, at 09:56  AM, David Edelsohn wrote:

>>>>>> Spundun  writes:
>
> Spundun> Hi as I am trying to use rs6000 configuration as a template 
> to port gcc
> Spundun> to a new architecture, I am encountering problems. My latest 
> is that
> Spundun> unlike rs6000 my arch doesnt have ctr register and the macros 
> like
> Spundun> HAVE_decrement_and_branch_on_count should be false. But I 
> couldnt locate
> Spundun> a place in the sourcecode where they are defined ( I 
> basically tried to
> Spundun> grep through the source). Can anyone suggest a clean way of 
> removing
> Spundun> these "barnch on count" support?
>
> 	Those macros are defined automatically based on the existence of
> particular named patterns in the machine description.

Yes.  In this particular case, decrement_and_branch_on_count is already 
gone
from rs6000.md, as of July 2000 (but see *ctrsi*).  You might want to 
use a
more recent version as a starting point.



More information about the Gcc mailing list