[FFmpeg-cvslog] Add CFLAGS needed by PathScale compiler

Mans Rullgard git
Wed Jan 26 04:01:14 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Jan 23 23:13:33 2011 +0000| [a98ffb2bc80d627bb0278fdcd4c85923767b5e8a] | committer: Michael Niedermayer

Add CFLAGS needed by PathScale compiler

The PathScale compiler miscompiles wrapping arithmetic without
these flags.

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit 5f3b8314a4a9120e0c6d6f153168c37eb849dbe8)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a98ffb2bc80d627bb0278fdcd4c85923767b5e8a
---

 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 5d8fcb0..2171d74 100755
--- a/configure
+++ b/configure
@@ -2988,6 +2988,8 @@ elif enabled armcc; then
     add_cflags -W${armcc_opt},--diag_suppress=3343 # hardfp compat
 elif enabled tms470; then
     add_cflags -pds=824 -pds=837
+elif enabled pathscale; then
+    add_cflags -fstrict-overflow -OPT:wrap_around_unsafe_opt=OFF
 fi
 
 enabled_any $THREADS_LIST      && enable threads




More information about the ffmpeg-cvslog mailing list