Browse Source

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 5f3b8314a4)
tags/n0.8
Mans Rullgard Michael Niedermayer 14 years ago
parent
commit
a98ffb2bc8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      configure

+ 2
- 0
configure View File

@@ -2988,6 +2988,8 @@ elif enabled armcc; then
add_cflags -W${armcc_opt},--diag_suppress=3343 # hardfp compat add_cflags -W${armcc_opt},--diag_suppress=3343 # hardfp compat
elif enabled tms470; then elif enabled tms470; then
add_cflags -pds=824 -pds=837 add_cflags -pds=824 -pds=837
elif enabled pathscale; then
add_cflags -fstrict-overflow -OPT:wrap_around_unsafe_opt=OFF
fi fi


enabled_any $THREADS_LIST && enable threads enabled_any $THREADS_LIST && enable threads


Loading…
Cancel
Save