Sun Studio 12 .. just for the heck of it ( again )

Marc Glisse marc.glisse at inria.fr
Mon Feb 20 20:47:55 CET 2012


On Sun, 19 Feb 2012, Dennis Clarke wrote:

> Same as with this :
>
>   http://gmplib.org/list-archives/gmp-bugs/2011-June/002271.html
>
> Sun Studio 12 simply will not compile GMP 5.0.4 and fails when it hits
> isfuns.cc and needs to grok attribute malloc. Well the feature list at :
>
>    http://developers.sun.com/sunstudio/support/Ccompare.html
>
> clearly says "Additions to the __attributes__ clause: always_inline, noinline,
> pure, const, malloc, and aligned" are supported on Studio 12 and Studio 12
> Update 1.
>
> I beg to differ :

Haven't we been through this some years back? IIRC, Sun's C compiler 
introduced support for attribute((malloc)) but the C++ compiler did not 
support it in the same release (might have been added since then). And GMP 
has this old bug that it determines the features of the C compiler and 
uses the results for the C++ compiler.

-- 
Marc Glisse


More information about the gmp-bugs mailing list