Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/gdl/files: gdl-0.9_rc4-gcc4.5.patch
Date: Wed, 25 Aug 2010 16:21:43
Message-Id: 20100825162139.0DF4520051@flycatcher.gentoo.org
1 xarthisius 10/08/25 16:21:39
2
3 Added: gdl-0.9_rc4-gcc4.5.patch
4 Log:
5 Fix build with GCC-4.5 wrt bug 334415. Thanks to Diego for report.
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch?rev=1.1&content-type=text/plain
13
14 Index: gdl-0.9_rc4-gcc4.5.patch
15 ===================================================================
16 Fix build with GCC-4.5
17
18 http://gnudatalanguage.cvs.sourceforge.net/viewvc/gnudatalanguage/gdl/src/math_utl.hpp?r1=1.4&r2=1.5&view=patch
19 http://bugs.gentoo.org/show_bug.cgi?id=334415
20 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564994
21
22 --- src/math_utl.hpp
23 +++ src/math_utl.hpp
24 @@ -22,11 +22,12 @@
25
26 //#define ABS(xxx) (( xxx > -xxx)?(xxx):(-xxx))
27
28 -template< typename T>
29 -inline T abs( T a) { return (a>=T(0))?a:-a;}
30 -
31 namespace lib {
32
33 + // SA: needs to be inside a namespace for GCC 4.5
34 + template< typename T>
35 + inline T abs( T a) { return (a>=T(0))?a:-a;}
36 +
37 // int trans513(char *, int, int, int, DType);
38 // int transpose(char *, SizeT, SizeT [], SizeT, DType);
39 // int transpose_perm(char *, SizeT, SizeT [], SizeT, DType, long []);