~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/d9/d9c08cfe662f45139f41c00573b3eff2c9660dce.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Define fpclassify and signbit for systems that need it.
 
2
 
 
3
--- a/src/gcc/d/phobos2/gcc/cbridge_math.c      2010-04-21 13:08:40.000000000 +0100
 
4
+++ b/src/gcc/d/phobos2/gcc/cbridge_math.c      2010-08-23 11:01:05.022792451 +0100
 
5
@@ -21,6 +21,23 @@
 
6
 #include <math.h>
 
7
 #include "config.h"
 
8
 
 
9
+/* If undefined, define fpclassify and signbit here */
 
10
+#ifndef fpclassify
 
11
+# define fpclassify(x) \
 
12
+    (sizeof (x) == sizeof (float) \
 
13
+     ? __fpclassifyf (x) \
 
14
+     : sizeof (x) == sizeof (double) \
 
15
+     ? __fpclassify (x) : __fpclassifyl (x))
 
16
+#endif
 
17
+
 
18
+#ifndef signbit
 
19
+# define signbit(x) \
 
20
+    (sizeof (x) == sizeof (float) \
 
21
+     ? __signbitf (x) \
 
22
+     : sizeof (x) == sizeof (double) \
 
23
+     ? __signbit (x) : __signbitl (x))
 
24
+#endif
 
25
+
 
26
 /*
 
27
 #if HAVE_DISTINCT_LONG_DOUBLE
 
28
 typedef long double my_long_double;