1 |
bircoph 14/12/01 08:02:49 |
2 |
|
3 |
Added: oprofile-0.9.9-gcc-4.9-unused.patch |
4 |
oprofile-0.9.9-gcc-4.9-non-ppc.patch |
5 |
Log: |
6 |
Backport gcc-4.9 and Athlon fixes from 1.0.0 |
7 |
|
8 |
Signed-off-by: Andrew Savchenko <bircoph@g.o> |
9 |
(Portage version: 2.2.14/cvs/Linux i686, signed Manifest commit with key 565953B95372756C) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: oprofile-0.9.9-gcc-4.9-unused.patch |
18 |
=================================================================== |
19 |
commit 98f57a6c0e32bc6080a50e1cdd769b9ff78108bc |
20 |
Author: William Cohen <wcohen@××××××.com> |
21 |
Date: Tue Jun 10 09:56:55 2014 -0500 |
22 |
|
23 |
Remove unused functions causing errors in recent gcc |
24 |
|
25 |
The Fedora rawhide compiler is now stricter and will treat the |
26 |
warnings for unused functions as errors and stop the compile. This patch |
27 |
removes two unused functions in the code. |
28 |
|
29 |
Signed-off-by: William Cohen <wcohen@××××××.com> |
30 |
|
31 |
diff --git a/libpp/callgraph_container.cpp b/libpp/callgraph_container.cpp |
32 |
index 1d1c95f..c5bc272 100644 |
33 |
--- a/libpp/callgraph_container.cpp |
34 |
+++ b/libpp/callgraph_container.cpp |
35 |
@@ -36,13 +36,6 @@ using namespace std; |
36 |
|
37 |
namespace { |
38 |
|
39 |
-bool operator==(cg_symbol const & lhs, cg_symbol const & rhs) |
40 |
-{ |
41 |
- less_symbol cmp_symb; |
42 |
- return !cmp_symb(lhs, rhs) && !cmp_symb(rhs, lhs); |
43 |
-} |
44 |
- |
45 |
- |
46 |
// we store {caller,callee} inside a single u64 |
47 |
odb_key_t caller_to_key(u32 value) |
48 |
{ |
49 |
diff --git a/libpp/xml_utils.cpp b/libpp/xml_utils.cpp |
50 |
index 5f1a3a1..3de41e5 100644 |
51 |
--- a/libpp/xml_utils.cpp |
52 |
+++ b/libpp/xml_utils.cpp |
53 |
@@ -101,12 +101,6 @@ bool has_separated_thread_info() |
54 |
} |
55 |
|
56 |
|
57 |
-string get_cpu_num(size_t pclass) |
58 |
-{ |
59 |
- return classes.v[pclass].ptemplate.cpu; |
60 |
-} |
61 |
- |
62 |
- |
63 |
}; // anonymous namespace |
64 |
|
65 |
xml_utils::xml_utils(format_output::xml_formatter * xo, |
66 |
|
67 |
|
68 |
|
69 |
1.1 dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch |
70 |
|
71 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: oprofile-0.9.9-gcc-4.9-non-ppc.patch |
75 |
=================================================================== |
76 |
Backported from 1.0.0: |
77 |
====================================================================== |
78 |
commit 008e470a9b8751de0a3745e511cbc05b68759688 |
79 |
Author: Aaro Koskinen <aaro.koskinen@×××.fi> |
80 |
Date: Mon May 12 08:28:46 2014 -0500 |
81 |
|
82 |
configure: fix test-for-synth check with GCC 4.9.0 |
83 |
|
84 |
With GCC 4.9.0 oprofile 0.9.9 build fails on non-PPC platfroms because |
85 |
the "test-for-synth" configure check result is incorrect: There is a NULL |
86 |
pointer dereference in the test program, so the compiler seems to optimize |
87 |
the rest of the code away, and the test will always succeed regardless |
88 |
whether powerpc_elf64_vec/bfd_elf64_powerpc_vec are present or not. |
89 |
Fix by allocating the referred struct statically. |
90 |
|
91 |
While at it, also include stdio.h to avoid a compiler warning. |
92 |
|
93 |
Signed-off-by: Aaro Koskinen <aaro.koskinen@×××.fi> |
94 |
|
95 |
diff --git a/m4/binutils.m4 b/m4/binutils.m4 |
96 |
index 25fb15a..d7948c1 100644 |
97 |
--- a/m4/binutils.m4 |
98 |
+++ b/m4/binutils.m4 |
99 |
@@ -27,8 +27,10 @@ if test "$OS" = "Linux"; then |
100 |
AC_MSG_CHECKING([whether bfd_get_synthetic_symtab() exists in BFD library]) |
101 |
rm -f test-for-synth |
102 |
AC_LANG_CONFTEST( |
103 |
- [AC_LANG_PROGRAM([[#include <bfd.h>]], |
104 |
- [[asymbol * synthsyms; bfd * ibfd = 0; |
105 |
+ [AC_LANG_PROGRAM([[#include <bfd.h>] |
106 |
+ [#include <stdio.h>] |
107 |
+ [static bfd _ibfd;]], |
108 |
+ [[asymbol * synthsyms; bfd * ibfd = &_ibfd; |
109 |
long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms); |
110 |
extern const bfd_target bfd_elf64_powerpc_vec; |
111 |
extern const bfd_target bfd_elf64_powerpcle_vec; |