On 16/05/14 18:07, Katerina Barone-Adesi wrote:
> Clang dies on dsputil_mmx.c with -fsanitize=undefined unless it is an
> optimizing compilation. Adding -O1 to the CFLAGS of --toolchain=clang-usan
> works around the compilation error that otherwise occurs when Libav
> is configured with --toolchain=clang-usan --disable-optimization
> (the latter disables only some optimizations, but allows optimizations
> which are necessary for compilation to succeed).

A better description could be:
"
build: Support building using clang-usan and disable-optimization

Clang Undefined Behaviour Sanitizer seems to make non-constant constant
expressions, making the compilation fail when they are used within
inline assembly if no optimization is requested.

Add -O1 to the cflags to hide the misbehaviour.

Bug-Id: 683
"

See https://wiki.libav.org/GitCommit

(repeating here since some people aren't in irc)

The patch is fine for me obviously.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to