File: CGAL-Valgrind-Enable-Hack.patch

package info (click to toggle)
openscad 2014.03%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,640 kB
  • ctags: 2,863
  • sloc: cpp: 24,054; python: 595; yacc: 466; ansic: 386; sh: 322; lex: 218; lisp: 151; xml: 60; makefile: 36
file content (16 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- CGAL-3.4/include/CGAL/Interval_nt.h
+++ CGAL-3.4/include/CGAL/Interval_nt.h
@@ -149,11 +149,13 @@
       // The macros CGAL_IA_MUL and CGAL_IA_DIV stop constant propagation only
       // on the second argument, so if -fno-rounding-math, the compiler optimizes
       // the 2 negations and we get wrong rounding.
+#if 0
       typename Interval_nt<>::Internal_protector P;
       CGAL_assertion_msg(-CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1),
                          "Wrong rounding: did you forget the -frounding-math option if you use GCC?");
       CGAL_assertion_msg(-CGAL_IA_DIV(-1, 10) != CGAL_IA_DIV(1, 10),
                          "Wrong rounding: did you forget the -frounding-math option if you use GCC?");
+#endif
     }
   };