[3.3/3.4] wrong handling of "extern const" variables

Jason Merrill jason@redhat.com
Thu Aug 21 21:35:00 GMT 2003


On Thu, 21 Aug 2003 11:11:42 -0700, Richard Henderson <rth@redhat.com> wrote:

> On Thu, Aug 21, 2003 at 12:23:45PM -0400, Jason Merrill wrote:
>> TREE_STATIC has never been set on decls with DECL_EXTERNAL set.
>
> Why not?  Such a decl *must* be in static storage.

Yes, but traditionally TREE_STATIC has meant "in static storage in the
current translation unit".  I'm used to checking TREE_STATIC ||
DECL_EXTERNAL in most cases.

I wouldn't object to changing this, but it would be a change.

Jason



More information about the Gcc mailing list