Re: C6X port 9/11: Allow defining attributes in terms of another

2011-05-26 Thread Bernd Schmidt
On 05/25/2011 01:45 PM, Hans-Peter Nilsson wrote: > On Wed, 25 May 2011, Bernd Schmidt wrote: > >> I'm not sure where you're looking for added documentation for this >> patch. > > I guess no surprise that'd be md.texi node Defining Attributes, That covers define_attr, not set_attr, so it seems i

Re: C6X port 9/11: Allow defining attributes in terms of another

2011-05-25 Thread Hans-Peter Nilsson
On Wed, 25 May 2011, Bernd Schmidt wrote: > I'm not sure where you're looking for added documentation for this > patch. I guess no surprise that'd be md.texi node Defining Attributes, or an updated example in node Attr Example since the documentation for "default" basically just refers to it. Or

Re: C6X port 9/11: Allow defining attributes in terms of another

2011-05-25 Thread Bernd Schmidt
On 05/25/2011 08:56 AM, Hans-Peter Nilsson wrote: > On Tue, 10 May 2011, Bernd Schmidt wrote: > >> I've found it useful to use a construct such as the following: >> >> (define_attr "units64" >> "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" >> (const_string "unknown")) >> >> (define_attr "units64p" >>

Re: C6X port 9/11: Allow defining attributes in terms of another

2011-05-25 Thread Hans-Peter Nilsson
On Tue, 10 May 2011, Bernd Schmidt wrote: > I've found it useful to use a construct such as the following: > > (define_attr "units64" > "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" > (const_string "unknown")) > > (define_attr "units64p" > "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" > (attr "units64"))

Re: C6X port 9/11: Allow defining attributes in terms of another

2011-05-16 Thread Bernd Schmidt
On 05/10/2011 03:47 PM, Bernd Schmidt wrote: > I've found it useful to use a construct such as the following: > > (define_attr "units64" > "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" > (const_string "unknown")) > > (define_attr "units64p" > "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" > (attr "units64

C6X port 9/11: Allow defining attributes in terms of another

2011-05-10 Thread Bernd Schmidt
I've found it useful to use a construct such as the following: (define_attr "units64" "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" (const_string "unknown")) (define_attr "units64p" "unknown,d,d_addr,l,m,s,dl,ds,dls,ls" (attr "units64")) to define one attribute in terms of another by default, al