shithub: openh264

Download patch

ref: 11bdebb12cac89460ddd64007d7830eb753bd58a
parent: c0043f7053bdd53d982b529f70240f9af0cf64f7
author: Martin Storsjö <[email protected]>
date: Wed Mar 5 06:47:53 EST 2014

Explicitly enable the UAL syntax when using gnu tools

Arm assembly has got two variants of the syntax, the old legacy
syntax, and the new modern UAL (unified assembly language) syntax.

Most arm assembly is the same in the both syntaxes, but some
uncommon cases change the order of suffixes - the "subscs"
instruction would be written "subcss" in the old syntax.

The apple tools default to UAL, while the GNU tools (e.g. in
android) require you to specify ".syntax unified" to enable the
new syntax. When enabling the new syntax with the GNU tools, some
cases of "sub r0, r1, lsl #1" needs to be written explicitly as
"sub r0, r0, r1, lsl #1", handled in the previous commit.

This allows using the same, modern syntax for things like subscs,
without needing to have two alternate forms of writing it.

--- a/codec/common/arm_arch_common_macro.S
+++ b/codec/common/arm_arch_common_macro.S
@@ -44,6 +44,8 @@
 .endm
 #else
 
+.syntax unified
+
 .macro WELS_ASM_FUNC_BEGIN funcName
 .align 2
 .arm