Add CFLAGS needed by PathScale compiler
authorMans Rullgard <mans@mansr.com>
Sun, 23 Jan 2011 23:13:33 +0000 (23:13 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Jan 2011 02:43:28 +0000 (03:43 +0100)
The PathScale compiler miscompiles wrapping arithmetic without
these flags.

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

configure

index 5d8fcb0..2171d74 100755 (executable)
--- 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