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: declare global in gimple


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.


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