patches/gcc/4.3.5/100-alpha-mieee-default.patch
changeset 2124 5dd0b83ae528
parent 1461 35b30f8fb307
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.3.5/100-alpha-mieee-default.patch	Sun Sep 19 18:37:18 2010 +0200
     1.3 @@ -0,0 +1,39 @@
     1.4 +Original patch from: ../4.3.2/100-alpha-mieee-default.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch
     1.8 +Set the default behavior on alpha to use -mieee since the large majority of
     1.9 +time we want this (bad/weird things can happen with packages built without
    1.10 +-mieee).
    1.11 +
    1.12 +To satisfy those people who may not want -mieee forced on them all the time,
    1.13 +we also provide -mno-ieee.
    1.14 +
    1.15 +Patch by Mike Frysinger <vapier@gentoo.org>
    1.16 +
    1.17 +-= END original header =-
    1.18 +
    1.19 +diff -durN gcc-4.3.3.orig/gcc/config/alpha/alpha.h gcc-4.3.3/gcc/config/alpha/alpha.h
    1.20 +--- gcc-4.3.3.orig/gcc/config/alpha/alpha.h	2007-12-06 14:25:37.000000000 +0100
    1.21 ++++ gcc-4.3.3/gcc/config/alpha/alpha.h	2009-01-27 22:19:02.000000000 +0100
    1.22 +@@ -95,6 +95,8 @@
    1.23 +   while (0)
    1.24 + #endif
    1.25 + 
    1.26 ++#define CPP_SPEC "%{!no-ieee:-mieee}"
    1.27 ++
    1.28 + #define WORD_SWITCH_TAKES_ARG(STR)		\
    1.29 +  (!strcmp (STR, "rpath") || DEFAULT_WORD_SWITCH_TAKES_ARG(STR))
    1.30 + 
    1.31 +diff -durN gcc-4.3.3.orig/gcc/config/alpha/alpha.opt gcc-4.3.3/gcc/config/alpha/alpha.opt
    1.32 +--- gcc-4.3.3.orig/gcc/config/alpha/alpha.opt	2007-08-02 12:49:31.000000000 +0200
    1.33 ++++ gcc-4.3.3/gcc/config/alpha/alpha.opt	2009-01-27 22:19:02.000000000 +0100
    1.34 +@@ -39,7 +39,7 @@
    1.35 + Request IEEE-conformant math library routines (OSF/1)
    1.36 + 
    1.37 + mieee
    1.38 +-Target Report RejectNegative Mask(IEEE)
    1.39 ++Target Report Mask(IEEE)
    1.40 + Emit IEEE-conformant code, without inexact exceptions
    1.41 + 
    1.42 + mieee-with-inexact