This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __declspec(selectany)
- From: "Dimitrie O. Paun" <dpaun at rogers dot com>
- To: Dan Kegel <dank at kegel dot com>
- Cc: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>,boaz at hishome dot net,wine-devel at winehq dot com,GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 6 Aug 2003 01:03:33 -0400
- Subject: Re: __declspec(selectany)
- Organization: DSSD Software Inc.
- References: <3F302784.80903@kegel.com> <200308060031.07622.dpaun@rogers.com> <3F308EA4.7020607@kegel.com>
- Reply-to: dpaun at rogers dot com
On August 6, 2003 01:14 am, Dan Kegel wrote:
> I looked at
> http://cvs.winehq.com/cvsweb/wine/tools/winegcc.c?rev=1.16
> and see you don't have
>
> #define selectany weak
That's right, it doesn't.
> Think winegcc should do -Dselectany=weak?
I don't know -- it's easy enough to add, but it's also
quite dangerous it seems. It would seem that a gcc
patch to teach it to recognize selectany as an attribute
is the way to go. I think people that need selectany to
work should explicitly define it, so they are aware of
the potential problems, no?
--
Dimi.