diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-30 04:17:05 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-30 04:17:05 (GMT) |
commit | 6940d171812565209efe679a5d923417c3f47d4a (patch) | |
tree | 2a05d2f8865ff1127f854db41bf31143f64ccf2d /patches/CGAL-Valgrind-Enable-Hack.patch | |
parent | 2b19f33ee1ddce246c2bfe0a05fe379d0117a741 (diff) |
reorganized file structure layout. more to follow...
git-svn-id: http://svn.clifford.at/openscad/trunk@364 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'patches/CGAL-Valgrind-Enable-Hack.patch')
-rw-r--r-- | patches/CGAL-Valgrind-Enable-Hack.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/CGAL-Valgrind-Enable-Hack.patch b/patches/CGAL-Valgrind-Enable-Hack.patch new file mode 100644 index 0000000..90733fc --- /dev/null +++ b/patches/CGAL-Valgrind-Enable-Hack.patch @@ -0,0 +1,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 + } + }; + |