Descriptiondisable inline ARM saturated arithmetic assembly for debug builds
When building third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h
in debug builds, we get this error:
cc1plus: warnings being treated as errors
SaturatedArithmeticARM.h: In function 'int saturatedSet(int, int)':
SaturatedArithmeticARM.h:70:43: error: asm operand 2 probably doesn't match constraints
SaturatedArithmeticARM.h:70:43: error: asm operand 3 probably doesn't match constraints
By switching -O0 to -O1 or -O2 in the compile command, the compile
succeeds. So let's disable the inline ARM assembly unless the build
is optimized- gcc defines _OPTIMIZE_=1 in this case.
I think this is a reasonable workaround until we can find a "proper"
solution.
BUG=325746
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178209
Patch Set 1 #
Messages
Total messages: 11 (0 generated)
|