This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: declare global in gimple
- From: Mikhail Maltsev <maltsevm at gmail dot com>
- To: k9119911 <xxx-protoss at yahoo dot com dot tw>, gcc-help at gcc dot gnu dot org
- Date: Fri, 21 Aug 2015 07:12:17 +0300
- Subject: Re: declare global in gimple
- Authentication-results: sourceware.org; auth=none
- References: <1440125475388-1178703 dot post at n5 dot nabble dot com>
On 08/21/2015 05:51 AM, k9119911 wrote:
> I think lang_hooks.decls.pushdecl(var) can only be used in front-end, so how
> can I declare
>
> a global variable in middle-end?
Probably, tree-profile.c (e.g. init_ic_make_global_vars) contains some code that
could be used as an example.
--
Regards,
Mikhail Maltsev