This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Experiences using struct gcc_target
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: Experiences using struct gcc_target
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 5 Jul 2001 09:08:25 +0100 (BST)
- cc: Stan Shebs <shebs at apple dot com>, <gcc at gcc dot gnu dot org>
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