[csw-maintainers] WebKit port to Solaris 10

Peter FELECAN pfelecan at opencsw.org
Fri Sep 13 09:56:20 CEST 2013


Rafael Ostertag <raos at opencsw.org> writes:

> Hi Peter
>
> On Wed, Sep 11, 2013 at 05:02:21PM +0200, Peter FELECAN wrote:
>> FWIW, I ported WebKit to Solaris 10. All the gory details are in the
>> 21906 revision of the recipe tree
>> http://gar.svn.sourceforge.net/gar/?rev=21906&view=rev
>
> Out of couriosity, didn't you run into trouble due to missing
> atomicIncrement()/atomicDecrement() on sparc?

This?

#elif COMPILER(GCC) && !CPU(SPARC64) && !OS(SYMBIAN) // sizeof(_Atomic_word) != sizeof(int) on sparc64 gcc
#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1

inline int atomicIncrement(int volatile* addend) { return __gnu_cxx::__exchange_and_add(addend, 1) + 1; }
inline int atomicDecrement(int volatile* addend) { return __gnu_cxx::__exchange_and_add(addend, -1) - 1; }

in src/3rdparty/webkit/Source/JavaScriptCore/wtf/Atomics.h

Please note that we deliver only 32 bit Qt

However, the test is overzealous because gcc 4.8 supplies an
implementation for sparc v9. We'll see this when we deliver a 64 bit Qt.
-- 
Peter


More information about the maintainers mailing list