diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-08-13 15:28:29 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-08-13 15:28:29 +0000 |
commit | 5e4c7ca224417902dd714f4f50500b36b8c89148 (patch) | |
tree | c9fdb0713c75ea36467a645f9cafc67549e1b754 /libavcodec/dsputil.c | |
parent | 345bb2ad90f845e004ccef49dec8fa183576eeaa (diff) | |
download | ffmpeg-5e4c7ca224417902dd714f4f50500b36b8c89148.tar.gz |
Add attribute that forces alignment of stack to functions that need it.
Necessary for systems that don't align by default to 16 bytes, required by some
SSE instructions.
Requires GCC >= 4.2.
Based on patch by Gaƫl Chardon.
Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 93417823d9..e1a81a3fea 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -3833,7 +3833,8 @@ int ff_check_alignment(void){ av_log(NULL, AV_LOG_ERROR, "Compiler did not align stack variables. Libavcodec has been miscompiled\n" "and may be very slow or crash. This is not a bug in libavcodec,\n" - "but in the compiler. Do not report crashes to FFmpeg developers.\n"); + "but in the compiler. You may try recompiling using gcc >= 4.2.\n" + "Do not report crashes to FFmpeg developers.\n"); #endif did_fail=1; } |