[gcc-6] 09/401: - update gdc-updates
Ximin Luo
infinity0 at debian.org
Wed Apr 5 15:47:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch pu/reproducible_builds
in repository gcc-6.
commit ba17304d2f8bb41b53a902bbafb5195da04a535b
Author: doko <doko at 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>
Date: Fri Dec 11 13:06:14 2015 +0000
- update gdc-updates
git-svn-id: svn://anonscm.debian.org/gcccvs/branches/sid/gcc-6@8493 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
---
debian/patches/gdc-updates.diff | 76 +++++++++++++----------------------------
1 file changed, 23 insertions(+), 53 deletions(-)
diff --git a/debian/patches/gdc-updates.diff b/debian/patches/gdc-updates.diff
index 57032e8..2b2093b 100644
--- a/debian/patches/gdc-updates.diff
+++ b/debian/patches/gdc-updates.diff
@@ -3,7 +3,7 @@
* Make-lang.in (d-warn): Filter out -Wmissing-format-attribute.
* lang.opt: Match GCC descriptions.
* d-lang.cc (d_getdecls): Fix indentation.
- * d-longdouble.cc: Remove uses of the REAL_ARITHMETIC macro.
+ * d-longdouble.cc: Define the REAL_ARITHMETIC macro, removed upstream.
* d-builtins.cc: Define DEF_FUNCTION_TYPE_9, DEF_FUNCTION_TYPE_10,
DEF_FUNCTION_TYPE_11, DEF_FUNCTION_TYPE_VAR_6.
* d-port.cc: Remove use of the REAL_VALUES_IDENTICAL macro.
@@ -99,58 +99,6 @@
}
---- a/src/gcc/d/d-longdouble.cc
-+++ b/src/gcc/d/d-longdouble.cc
-@@ -263,7 +263,7 @@
- longdouble::operator + (const longdouble& r)
- {
- real_value x;
-- REAL_ARITHMETIC (x, PLUS_EXPR, rv(), r.rv());
-+ real_arithmetic (&x, PLUS_EXPR, &rv(), &r.rv());
- return ldouble (x);
- }
-
-@@ -271,7 +271,7 @@
- longdouble::operator - (const longdouble& r)
- {
- real_value x;
-- REAL_ARITHMETIC (x, MINUS_EXPR, rv(), r.rv());
-+ real_arithmetic (&x, MINUS_EXPR, &rv(), &r.rv());
- return ldouble (x);
- }
-
-@@ -279,7 +279,7 @@
- longdouble::operator * (const longdouble& r)
- {
- real_value x;
-- REAL_ARITHMETIC (x, MULT_EXPR, rv(), r.rv());
-+ real_arithmetic (&x, MULT_EXPR, &rv(), &r.rv());
- return ldouble (x);
- }
-
-@@ -287,7 +287,7 @@
- longdouble::operator / (const longdouble& r)
- {
- real_value x;
-- REAL_ARITHMETIC (x, RDIV_EXPR, rv(), r.rv());
-+ real_arithmetic (&x, RDIV_EXPR, &rv(), &r.rv());
- return ldouble (x);
- }
-
-@@ -310,10 +310,10 @@
- return *this;
-
- // Need to check for NaN?
-- REAL_ARITHMETIC (q, RDIV_EXPR, rv(), r.rv());
-+ real_arithmetic (&q, RDIV_EXPR, &rv(), &r.rv());
- real_arithmetic (&q, FIX_TRUNC_EXPR, &q, NULL);
-- REAL_ARITHMETIC (q, MULT_EXPR, q, r.rv());
-- REAL_ARITHMETIC (x, MINUS_EXPR, rv(), q);
-+ real_arithmetic (&q, MULT_EXPR, &q, &r.rv());
-+ real_arithmetic (&x, MINUS_EXPR, &rv(), &q);
-
- return ldouble (x);
- }
--- a/src/gcc/d/d-builtins.cc
+++ b/src/gcc/d/d-builtins.cc
@@ -638,12 +638,16 @@
@@ -227,3 +175,25 @@
}
char *
+--- a/src/gcc/d/d-longdouble.cc
++++ b/src/gcc/d/d-longdouble.cc
+@@ -32,6 +32,8 @@
+ #include "d-codegen.h"
+ #include "longdouble.h"
+
++#define REAL_ARITHMETIC(value, code, d1, d2) \
++ real_arithmetic (&(value), code, &(d1), &(d2))
+
+ // Return backend machine_mode for frontend mode MODE.
+
+--- a/src/libphobos/src/std/internal/math/gammafunction.d
++++ b/src/libphobos/src/std/internal/math/gammafunction.d
+@@ -420,7 +420,7 @@
+ if ( p == q )
+ return real.infinity;
+ int intpart = cast(int)(p);
+- real sgngam = 1;
++ real sgngam = 1.0L;
+ if ( (intpart & 1) == 0 )
+ sgngam = -1;
+ z = q - p;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/gcc-6.git
More information about the Reproducible-commits
mailing list