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: [PATCH] PR middle-end/14289: TREE_STATIC global reg vars


On Wed, Mar 03, 2004 at 09:25:08PM -0800, Zack Weinberg wrote:
> why do we have both TREE_STATIC and TREE_PUBLIC?

STATIC means !automatic, i.e. lives in memory outside any
stack frame.  PUBLIC means it is visible to other translation
units, i.e. has .global applied to it at the assembly level.

Not sure what makes most sense for a global register variable;
probably PUBLIC.


r~


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