commit:     49c34d5b09510362b56b4a92f168a2b3a56fc45c
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  8 17:51:02 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jul  8 17:51:02 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49c34d5b

app-editors/emacs: Fix floating point exception on alpha.

Bug: https://debbugs.gnu.org/32086
Package-Manager: Portage-2.3.41, Repoman-2.3.9

 app-editors/emacs/emacs-23.4-r17.ebuild | 3 +++
 app-editors/emacs/emacs-24.5-r5.ebuild  | 3 +++
 app-editors/emacs/emacs-25.3-r4.ebuild  | 3 +++
 app-editors/emacs/emacs-26.1-r1.ebuild  | 3 +++
 4 files changed, 12 insertions(+)

diff --git a/app-editors/emacs/emacs-23.4-r17.ebuild 
b/app-editors/emacs/emacs-23.4-r17.ebuild
index a2456d6cbd3..99eac1719fd 100644
--- a/app-editors/emacs/emacs-23.4-r17.ebuild
+++ b/app-editors/emacs/emacs-23.4-r17.ebuild
@@ -134,6 +134,9 @@ src_configure() {
                replace-flags "-O[3-9]" -O2
        fi
 
+       # Don't trigger a floating point exception for NaNs on alpha
+       use alpha && append-flags -mieee
+
        local myconf
 
        if use alsa && ! use sound; then

diff --git a/app-editors/emacs/emacs-24.5-r5.ebuild 
b/app-editors/emacs/emacs-24.5-r5.ebuild
index d1f8e3fe6d6..d06860523d9 100644
--- a/app-editors/emacs/emacs-24.5-r5.ebuild
+++ b/app-editors/emacs/emacs-24.5-r5.ebuild
@@ -125,6 +125,9 @@ src_configure() {
                replace-flags "-O[3-9]" -O2
        fi
 
+       # Don't trigger a floating point exception for NaNs on alpha
+       use alpha && append-flags -mieee
+
        local myconf
 
        if use alsa; then

diff --git a/app-editors/emacs/emacs-25.3-r4.ebuild 
b/app-editors/emacs/emacs-25.3-r4.ebuild
index c6d29908c41..6911c651218 100644
--- a/app-editors/emacs/emacs-25.3-r4.ebuild
+++ b/app-editors/emacs/emacs-25.3-r4.ebuild
@@ -127,6 +127,9 @@ src_configure() {
                replace-flags "-O[3-9]" -O2
        fi
 
+       # Don't trigger a floating point exception for NaNs on alpha
+       use alpha && append-flags -mieee
+
        local myconf
 
        if use alsa; then

diff --git a/app-editors/emacs/emacs-26.1-r1.ebuild 
b/app-editors/emacs/emacs-26.1-r1.ebuild
index 6b3b71a29f6..97b7b129485 100644
--- a/app-editors/emacs/emacs-26.1-r1.ebuild
+++ b/app-editors/emacs/emacs-26.1-r1.ebuild
@@ -137,6 +137,9 @@ src_configure() {
                replace-flags "-O[3-9]" -O2
        fi
 
+       # Don't trigger a floating point exception for NaNs on alpha
+       use alpha && append-flags -mieee
+
        local myconf
 
        if use alsa; then

Reply via email to