This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Error if C++ `init_priority' Attribute Not Supported
- To: Jason Merrill <jason at redhat dot com>
- Subject: Re: PATCH: Error if C++ `init_priority' Attribute Not Supported
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Mon, 15 Jan 2001 23:29:41 -0500
- Cc: Jeffrey Oldham <oldham at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- References: <20010114193844.B8072@codesourcery.com> <u9k87xf0y7.fsf@casey.cambridge.redhat.com>
On Mon, Jan 15, 2001 at 12:53:16PM +0000, Jason Merrill wrote:
> Perhaps the iris6.h defn should be !flag_gnu_linker, rather than 0. The
> same would be appropriate on all targets that don't use collect2; Solaris
> comes to mind.
Most definitely. Under Solaris-without-GNU-ld, using this attribute causes
no warnings nor errors, but the variables in question are never constructed
at all. Ouch.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.