[webkit-gtk] webkitgtk-1.10 crashes on some AMD processors

Daniel Drake dsd at laptop.org
Fri Sep 28 10:09:55 PDT 2012


On Fri, Sep 28, 2012 at 10:56 AM, Martin Robinson <mrobinson at webkit.org> wrote:
> On Fri, Sep 28, 2012 at 9:10 AM, Daniel Drake <dsd at laptop.org> wrote:
>> It looks like the only option (beyond explicitly dropping support for
>> these processors) is disabling LLint on x86 32-bit. Is that something
>> that can be done in webkitgtk?
>
> If it's possible, a good solution would be to detect at compile-time
> when we are compiling for one of these processors and disable LLint.

Good idea. gcc's __SSE2__ seems to do the trick.


#ifdef __SSE2__
#error "sse2 enabled"
#else
#error "sse2 disabled"
#endif

[dsd at bloom ~]$ gcc test.c
test.c:4:2: error: #error "sse2 disabled"
[dsd at bloom ~]$ gcc -march=i686 test.c
test.c:4:2: error: #error "sse2 disabled"
[dsd at bloom ~]$ gcc -march=i686 -msse2 test.c
test.c:2:2: error: #error "sse2 enabled"
[dsd at bloom ~]$ gcc -march=k8 test.c
test.c:2:2: error: #error "sse2 enabled"
[dsd at bloom ~]$ gcc -march=geode test.c
test.c:4:2: error: #error "sse2 disabled"

Daniel


More information about the webkit-gtk mailing list