Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/lcov/files: lcov-1.9-gcc-4.7.patch
Date: Wed, 27 Jun 2012 22:01:45
Message-Id: 20120627220130.84AD72004B@flycatcher.gentoo.org
1 vapier 12/06/27 22:01:30
2
3 Added: lcov-1.9-gcc-4.7.patch
4 Log:
5 Fix from upstream for working with gcc-4.7.
6
7 (Portage version: 2.2.0_alpha112/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-util/lcov/files/lcov-1.9-gcc-4.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/lcov/files/lcov-1.9-gcc-4.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/lcov/files/lcov-1.9-gcc-4.7.patch?rev=1.1&content-type=text/plain
14
15 Index: lcov-1.9-gcc-4.7.patch
16 ===================================================================
17 fix from upstream to work with gcc-4.7
18
19 Index: bin/geninfo
20 ===================================================================
21 RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v
22 retrieving revision 1.95
23 retrieving revision 1.96
24 diff -u -p -r1.95 -r1.96
25 --- bin/geninfo 20 Jan 2012 11:53:57 -0000 1.95
26 +++ bin/geninfo 10 Apr 2012 11:48:52 -0000 1.96
27 @@ -61,6 +61,7 @@ if( $^O eq "msys" )
28 our $gcov_tool = "gcov";
29 our $tool_name = basename($0);
30
31 +our $GCOV_VERSION_4_7_0 = 0x40700;
32 our $GCOV_VERSION_3_4_0 = 0x30400;
33 our $GCOV_VERSION_3_3_0 = 0x30300;
34 our $GCNO_FUNCTION_TAG = 0x01000000;
35 @@ -3023,5 +3024,10 @@ sub read_gcno_function_record(*$$$$)
36 graph_expect("function record");
37 # Skip ident and checksum
38 graph_skip($handle, 8, "function ident and checksum") or return undef;
39 + if ($gcov_version >= $GCOV_VERSION_4_7_0) {
40 + # Skip extra checksum added by android 4.4.0 / gcc >= 4.7
41 + # toolchains.
42 + graph_skip($handle, 4, "function extra checksum");
43 + }
44 # Read function name
45 graph_expect("function name");