aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-01-23 23:13:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-01-26 03:43:28 +0100
commita98ffb2bc80d627bb0278fdcd4c85923767b5e8a (patch)
tree53967a0400bba44404e875ba599f8b057b81ade0 /configure
parent355d05280a96246c60edb00277cb120cf62ba51b (diff)
downloadffmpeg-a98ffb2bc80d627bb0278fdcd4c85923767b5e8a.tar.gz
Add CFLAGS needed by PathScale compiler
The PathScale compiler miscompiles wrapping arithmetic without these flags. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 5f3b8314a4a9120e0c6d6f153168c37eb849dbe8)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 5d8fcb0b57..2171d748f6 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