This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: declare global in gimple
- From: k9119911 <xxx-protoss at yahoo dot com dot tw>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 21 Aug 2015 05:25:09 -0700 (MST)
- Subject: Re: declare global in gimple
- Authentication-results: sourceware.org; auth=none
- References: <1440125475388-1178703 dot post at n5 dot nabble dot com> <55D6A521 dot 8000202 at gmail dot com>
Hi Mikhail
Thank you so much.
It works now and declared in .bss section.
However, I just wonder why it works.
Because we need to specify in frontend:
TREE_PUBLIC(decl) = 1
but we do the opposite in middle-end:
TREE_PUBLIC(decl) = 0
Why they are different? It is confusing.
Thanks
--
View this message in context: http://gcc.1065356.n5.nabble.com/declare-global-in-gimple-tp1178703p1178812.html
Sent from the gcc - Help mailing list archive at Nabble.com.