diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/alpha-ieee.dpatch')
| -rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/alpha-ieee.dpatch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/alpha-ieee.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/alpha-ieee.dpatch new file mode 100644 index 0000000000..4070b1a39e --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/alpha-ieee.dpatch | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | #! /bin/sh -e | ||
| 2 | |||
| 3 | # DP: #212912 | ||
| 4 | # DP: on alpha-linux, make -mieee default and add -mieee-disable switch | ||
| 5 | # DP: to turn default off | ||
| 6 | |||
| 7 | dir= | ||
| 8 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
| 9 | pdir="-d $3" | ||
| 10 | dir="$3/" | ||
| 11 | elif [ $# -ne 1 ]; then | ||
| 12 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
| 13 | exit 1 | ||
| 14 | fi | ||
| 15 | case "$1" in | ||
| 16 | -patch) | ||
| 17 | patch $pdir -f --no-backup-if-mismatch -p1 < $0 | ||
| 18 | ;; | ||
| 19 | -unpatch) | ||
| 20 | patch $pdir -f --no-backup-if-mismatch -R -p1 < $0 | ||
| 21 | ;; | ||
| 22 | *) | ||
| 23 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
| 24 | exit 1 | ||
| 25 | esac | ||
| 26 | exit 0 | ||
| 27 | |||
| 28 | |||
| 29 | --- src/gcc/config/alpha/alpha.c~ 2005-06-04 21:25:45.000000000 +0200 | ||
| 30 | +++ src/gcc/config/alpha/alpha.c 2005-09-30 22:21:33.251175568 +0200 | ||
| 31 | @@ -248,6 +248,10 @@ | ||
| 32 | { 0, 0, 0 } | ||
| 33 | }; | ||
| 34 | |||
| 35 | + /* If not -ffinite-math-only, enable -mieee*/ | ||
| 36 | + if (!flag_finite_math_only) | ||
| 37 | + target_flags |= MASK_IEEE|MASK_IEEE_CONFORMANT; | ||
| 38 | + | ||
| 39 | /* Unicos/Mk doesn't have shared libraries. */ | ||
| 40 | if (TARGET_ABI_UNICOSMK && flag_pic) | ||
| 41 | { | ||
| 42 | #--- src/gcc/doc/invoke.texi~ 2005-09-29 20:00:57.638380128 +0200 | ||
| 43 | #+++ src/gcc/doc/invoke.texi 2005-09-30 22:23:22.922502992 +0200 | ||
| 44 | #@@ -7670,6 +7670,13 @@ | ||
| 45 | # values such as not-a-number and plus/minus infinity. Other Alpha | ||
| 46 | # compilers call this option @option{-ieee_with_no_inexact}. | ||
| 47 | # | ||
| 48 | #+DEBIAN SPECIFIC: This option is on by default, unless | ||
| 49 | #+@option{-ffinite-math-only} (which is part of the @option{-ffast-math} | ||
| 50 | #+set) is specified, because the software functions in the GNU libc math | ||
| 51 | #+libraries generate denormalized numbers, NaNs, and infs (all of which | ||
| 52 | #+will cause a programs to SIGFPE when it attempts to use the results without | ||
| 53 | #+@option{-mieee}). | ||
| 54 | #+ | ||
| 55 | # @item -mieee-with-inexact | ||
| 56 | # @opindex mieee-with-inexact | ||
| 57 | # This is like @option{-mieee} except the generated code also maintains | ||
