This is the mail archive of the gcc-help@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: Record Types and Arrays


Philip Herron <redbrain@gcc.gnu.org> writes:

>   tree callable_var_decl = build_decl (BUILTINS_LOCATION,VAR_DECL,
> 				       get_identifier("__gpy_module_main_callables"),
> 				       array_type);
>
>  DECL_ARTIFICIAL (callable_var_decl) = 1;
>   TREE_STATIC (callable_var_decl) = 1;
>   TREE_PUBLIC (callable_var_decl) = 1;
>   TREE_USED (callable_var_decl) = 1;
>
> I get gimple dump output (although you dont see toplevel decls in
> gimple for some reason) but no assembler output. I am not quite sure
> what i am doing wrong with this.

Did you call rest_of_decl_compilation, or pass this in the array you
pass to wrapup_global_declarations and friends?  Everything else looks
OK as far as I can see.

Ian


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