This is the mail archive of the gcc@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]

Re: Experiences using struct gcc_target


On Thu, 5 Jul 2001, Neil Booth wrote:

> You shouldn't need to.  Your problem is rtx is a typedef.  Use a
> (possibly predeclared) union rtx_def * (or whatever rtx really is).
> You just have a pointer to the type, and not the type itself, so you
> shouldn't need rtl.h.

Similarly, you should make it declare union tree_node; and use union
tree_node * instead of tree.  (But the documentation should still use
"tree" and "rtx" when it documents the hooks with @deftypefn.)

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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