diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-16 09:06:00 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-16 09:06:00 +0000 |
commit | 3c35b00196661077b6f5a6e996c34c9b5d8c244f (patch) | |
tree | 99627e360537a116bc097b2d503bebe80c04e60d /meta/packages/gcc/gcc-4.3.0/debian/alpha-ieee.dpatch | |
parent | 4c664f698ca1fe0d0e04f581d01d024757fdad8a (diff) | |
download | poky-3c35b00196661077b6f5a6e996c34c9b5d8c244f.tar.gz |
gcc: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4485 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.0/debian/alpha-ieee.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.0/debian/alpha-ieee.dpatch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.0/debian/alpha-ieee.dpatch b/meta/packages/gcc/gcc-4.3.0/debian/alpha-ieee.dpatch new file mode 100644 index 0000000000..4070b1a39e --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.0/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 | ||