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: C6X port 9/11: Allow defining attributes in terms of another


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"))
>
> to define one attribute in terms of another by default,

So it's just the units64p default value taken from the units64
default value or units64p gets its default value from the final
units64 value?

> allowing
> individual insn patterns to override the definition of "units64p" where
> necessary. This patch adds support for this in genattrtab.

I'm not sure I get it, and I think I would be helped by seeing
the documentation update. ;)

brgds, H-P
PS. ok, I could look in the port, but the documentation still needs updating, right?


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