This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR c/43288 (ICE with __attribute__ ((common)))
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: sje at cup dot hp dot com (Steve Ellcey)
- Cc: hubicka at ucw dot cz, gcc-patches at gcc dot gnu dot org, dave dot anglin at nrc-cnrc dot gc dot ca
- Date: Thu, 11 Mar 2010 16:54:58 -0500 (EST)
- Subject: Re: PR c/43288 (ICE with __attribute__ ((common)))
> I think I have a var decl that is weak and common because that is
> how HPPA is doing comdats in SOM. Dave can correct me if I have
> that wrong.
See define for MAKE_DECL_ONE_ONLY in som.h. We don't set both
DECL_COMMON and DECL_WEAK. Some other code must be setting
DECL_COMMON or DECL_WEAK to cause the error (or maybe MAKE_DECL_ONE_ONLY
is used twice, once before DECL_INITIAL is set).
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)