~ubuntu-branches/ubuntu/trusty/lame/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/05-armel-no-finite-math-only.diff

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2011-07-28 19:14:03 UTC
  • mfrom: (1.2.1 upstream) (10 maverick)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20110728191403-jbdct7czfqvei8q6
Tags: 3.98.4+repack2-1
* Update debian/copyright to reflect replacement of portableio code from
  upstream.
* Update README.source to mention change of portableio code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
A bug present in gcc-4.[123] up to 4.3.3 makes a buggy optimization for
2
 
single-precision floats when -ffinite-math-only (enabled by -ffast-math)
3
 
 
4
 
Symptom: lame -V0 produces silent output files.
5
 
Refs:
6
 
https://sourceforge.net/tracker/index.php?func=detail&aid=2681646&group_id=290&atid=100290
7
 
https://trac.xiph.org/ticket/1526
8
 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39501
9
 
 
10
 
        Martin Guy <martinwguy@yahoo.it> 19 March 2009
11
 
 
12
 
--- lame-3.98.2/configure.old   2008-06-29 22:40:05.000000000 +0100
13
 
+++ lame-3.98.2/configure       2009-03-19 19:00:42.000000000 +0000
14
 
@@ -30189,6 +30189,15 @@
15
 
                CFLAGS="-Wall ${CFLAGS}"
16
 
        fi
17
 
 
18
 
+       # Work round buggy softfloat optimization in ARM EABI compilers
19
 
+       # -gnueabi in only gcc-4.1 onwards
20
 
+       FAST_MATH="-ffast-math"
21
 
+       case "${host}" in
22
 
+       arm*-gnueabi)
23
 
+               FAST_MATH="-ffast-math -fno-finite-math-only"
24
 
+               ;;
25
 
+       esac
26
 
+
27
 
        # GCC version specific generic options
28
 
        case "${GCC_version}" in
29
 
        2.96*)
30
 
@@ -30217,12 +30226,12 @@
31
 
                        ;;
32
 
                esac
33
 
 
34
 
-               OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math"
35
 
+               OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} ${FAST_MATH}"
36
 
                OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
37
 
                        -fbranch-count-reg -fforce-addr -fforce-mem"
38
 
                ;;
39
 
        4.*)
40
 
-               OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math"
41
 
+               OPTIMIZATION="-O3 -fomit-frame-pointer ${FAST_MATH}"
42
 
                OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
43
 
                ;;
44
 
        *)