This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [csl-sol210-branch] Add some Solaris #pragmas
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 14 Jul 2004 15:59:28 +0200
- Subject: Re: [csl-sol210-branch] Add some Solaris #pragmas
- References: <20040713203455.GA14603@nevyn.them.org>
Daniel Jacobowitz <drow@false.org> writes:
> This patch enables, for i386-pc-solaris2.10, a couple of #pragma directives:
> #pragma init
> #pragma fini
> #pragma align
>
> These appear to be needed for compatibility with the Solaris 10 system
> headers. Committed to csl-sol210-branch; I'll submit it for mainline at a
I couldn't find any mention in the current Solaris 10 (i.e. s10_60 aka Beta
5) system headers, though.
> later date, after additional testing.
>
> Does any Sparc Solaris target need these? If so I could put them in
> config/...
They certainly exist on both SPARC and x86 as far back as the WorkShop 5.0
compilers from 1999, so they should probably be made available for all
Solaris 2 versions on both platforms. Cf. e.g.
http://docs.sun.com/db/doc/805-4955/6j4mg806k?q=pragma+init&a=view
and
http://docs.sun.com/source/817-5070/Pragmas_App.html
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University