History

lavu: test for broken binutils on ARM

Some old gnu assemblers fail to assemble qdadd correctly Ideally we should check this at build time, but better to check at run time than mysteriously failing.

Michael Niedermayer committed 13 years ago

Commit 9a697cf1 parent 305180f1 file · +5 −0Browse files

Unified · Split

libavutil/utils.c+5−0
@@ -35,6 +35,11 @@ unsigned avutil_version(void) · 34 unmodified lines
3535 av_assert0(LIBAVUTIL_VERSION_MICRO >= 100);
3636 av_assert0(HAVE_MMX2 == HAVE_MMXEXT);
3737
38+ if (av_sat_dadd32(1, 2) != 5) {
39+ av_log(NULL, AV_LOG_FATAL, "Libavutil has been build with a broken binutils, please upgrade binutils and rebuild\n");
40+ abort();
41+ }
42+
3843 return LIBAVUTIL_VERSION_INT;
3944 }
4045

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t