Log Message
2011-06-27 Raymes Khoury <[email protected]> Reviewed by Tony Chang.
WebCore fails to compile in thumb mode when neon instructions are
enabled.
There are two files (FELightingNEON.cpp and FEGaussianBlur.cpp)
which fail to build when -mthumb is passed to gcc. These contain inline
assembly for neon instructions on arm. This patch forces the -marm flag
to be passed when compiling these files to work around this.
https://bugs.webkit.org/show_bug.cgi?id=62916
Built WebKit in Chromium and checked that -marm is passed
only when building these files.
https://bugs.webkit.org/show_bug.cgi?id=62916
* WebCore.gyp/WebCore.gyp:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (89873 => 89874)
--- trunk/Source/WebCore/ChangeLog 2011-06-27 23:05:36 UTC (rev 89873)
+++ trunk/Source/WebCore/ChangeLog 2011-06-27 23:09:23 UTC (rev 89874)
@@ -1,3 +1,24 @@
+2011-06-27 Raymes Khoury <[email protected]>
+
+ Reviewed by Tony Chang.
+
+ WebCore fails to compile in thumb mode when neon instructions are
+ enabled.
+
+ There are two files (FELightingNEON.cpp and FEGaussianBlur.cpp)
+ which fail to build when -mthumb is passed to gcc. These contain inline
+ assembly for neon instructions on arm. This patch forces the -marm flag
+ to be passed when compiling these files to work around this.
+
+ https://bugs.webkit.org/show_bug.cgi?id=62916
+
+ Built WebKit in Chromium and checked that -marm is passed
+ only when building these files.
+
+ https://bugs.webkit.org/show_bug.cgi?id=62916
+
+ * WebCore.gyp/WebCore.gyp:
+
2011-06-27 Jay Civelli <[email protected]>
Reviewed by Darin Fisher.
Modified: trunk/Source/WebCore/WebCore.gyp/WebCore.gyp (89873 => 89874)
--- trunk/Source/WebCore/WebCore.gyp/WebCore.gyp 2011-06-27 23:05:36 UTC (rev 89873)
+++ trunk/Source/WebCore/WebCore.gyp/WebCore.gyp 2011-06-27 23:09:23 UTC (rev 89874)
@@ -1315,6 +1315,9 @@
['exclude', 'platform/MIMETypeRegistry\\.cpp$'],
['exclude', 'platform/Theme\\.cpp$'],
['exclude', 'platform/graphics/ANGLEWebKitBridge\\.(cpp|h)$'],
+ # *NEON.cpp files need special compile options.
+ # They are moved to the webcore_arm_neon target.
+ ['exclude', 'platform/graphics/filters/arm/.*NEON\\.(cpp|h)'],
['exclude', 'platform/image-encoders/JPEGImageEncoder\\.(cpp|h)$'],
['exclude', 'platform/image-encoders/PNGImageEncoder\\.(cpp|h)$'],
['exclude', 'platform/network/ResourceHandle\\.cpp$'],
@@ -1477,7 +1480,30 @@
}],
],
},
+ # The *NEON.cpp files fail to compile when -mthumb is passed. Force
+ # them to build in ARM mode.
+ # See https://bugs.webkit.org/show_bug.cgi?id=62916.
{
+ 'target_name': 'webcore_arm_neon',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'webcore_prerequisites',
+ ],
+ 'hard_dependency': 1,
+ 'sources': [
+ '<@(webcore_files)',
+ ],
+ 'sources/': [
+ ['exclude', '.*'],
+ ['include', 'platform/graphics/filters/arm/.*NEON\\.(cpp|h)'],
+ ],
+ 'conditions': [
+ ['OS=="linux" and target_arch=="arm"', {
+ 'cflags': ['-marm'],
+ }],
+ ],
+ },
+ {
'target_name': 'webcore_rendering',
'type': 'static_library',
'dependencies': [
@@ -1677,6 +1703,7 @@
'target_name': 'webcore',
'type': 'none',
'dependencies': [
+ 'webcore_arm_neon',
'webcore_html',
'webcore_platform',
'webcore_remaining',
_______________________________________________ webkit-changes mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes
