This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Does Solaris 11 support GCC's init_priority?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jeffrey Walton <noloader at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>
- Date: Tue, 20 Sep 2016 10:04:56 +0100
- Subject: Re: Does Solaris 11 support GCC's init_priority?
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8mz067=Y5e1To5FPtzsR9+UpHzf8OuMMYEDRPTVEXSP+w@mail.gmail.com>
On 20 September 2016 at 01:16, Jeffrey Walton wrote:
> Hi Everyone,
>
> Please forgive my ignorance, I'm working on Solaris 11.3 x86_64. It
> provides GCC 4.8.2.
>
> Compiling a source file that uses init_priority results in:
>
> $ /usr/gnu/bin/egrep 'error:' cryptest-result.txt
> ...
> cpu.cpp:228:84: error: constructor priorities are not supported
> void __attribute__ ((constructor (CRYPTOPP_INIT_PRIORITY + 50)))
> DetectX86Features()
>
> ^
>
> I know GCC 4.8 supports them, so I'm trying to determine the scope of
> Solaris non-support. I also see Solaris 12 may support them. Confer,
> https://patchwork.ozlabs.org/patch/527320/.
>
> Does anyone know the scope here? Is it Solaris 11 and below? Is it
> only limited to x86_64? Or is it all Solaris with all arch'es?
You should ask the Solaris maintainer, who doesn't read this list.
I've CC'd him.