[PATCH] PR middle-end/14289: TREE_STATIC global reg vars

Richard Henderson rth@redhat.com
Thu Mar 4 23:10:00 GMT 2004


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~



More information about the Gcc-patches mailing list