This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [csl-sol210-branch] Add some Solaris #pragmas


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]