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: [gimplefe] Skeleton GIMPLE front end


On Fri, Aug 13, 2010 at 9:01 PM, Diego Novillo <dnovillo@google.com> wrote:

> +union GTY((desc ("gimple_tree_node_structure (&%h)"),
> + ? ? ? ? chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)")))
> + ? ?lang_tree_node
> +{
> + ?union tree_node GTY ((tag ("TS_GIMPLE_GENERIC"),
> + ? ? ? ? ? ? ? ? ? ? ? desc ("gimple_tree_node_structure (&%h)"))) generic;
> +};

I am unsure that this works. It gave me a build error. Instead it should be:

> +union GTY((desc ("gimple_tree_node_structure (&%h)"),
> +         chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)")))
> +    lang_tree_node
> +{
> +  union tree_node GTY ((tag ("TS_GIMPLE_GENERIC"),
> +                       desc ("tree_node_structure (&%h)"))) generic;
> +};

The build was successful by making that change from
gimple_tree_node_structure to tree_node_structure.
-- 
Cheers
Sandy


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