diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-devtools/elfutils/elfutils/fix-build-gcc-4.8.patch | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils/fix-build-gcc-4.8.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils/fix-build-gcc-4.8.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils/fix-build-gcc-4.8.patch b/meta/recipes-devtools/elfutils/elfutils/fix-build-gcc-4.8.patch new file mode 100644 index 0000000000..a7c351941f --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils/fix-build-gcc-4.8.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | This patch fixes a warning seen with gcc 4.8 (especially on ubuntu 13.10) | ||
2 | |||
3 | | addr2line.c: In function 'handle_address': | ||
4 | | addr2line.c:450:7: error: format '%a' expects argument of type 'float *', but argument 3 has type 'char **' [-Werror=format=] | ||
5 | | if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 | ||
6 | | ^ | ||
7 | | addr2line.c:453:7: error: format '%a' expects argument of type 'float *', but argument 3 has type 'char **' [-Werror=format=] | ||
8 | | switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) | ||
9 | | ^ | ||
10 | | cc1: all warnings being treated as errors | ||
11 | |||
12 | |||
13 | %a is old GNU style and should be abandoned in favor of %m | ||
14 | |||
15 | Also see | ||
16 | |||
17 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54361 | ||
18 | |||
19 | to support this assertion | ||
20 | |||
21 | This patch is added via redhat-compatibility patch so lets revert this part | ||
22 | here. | ||
23 | |||
24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
25 | |||
26 | Upstream-Status: Inappropriate [Caused by an earlier patch] | ||
27 | |||
28 | Index: elfutils-0.155/src/addr2line.c | ||
29 | =================================================================== | ||
30 | --- elfutils-0.155.orig/src/addr2line.c | ||
31 | +++ elfutils-0.155/src/addr2line.c | ||
32 | @@ -447,10 +447,10 @@ handle_address (const char *string, Dwfl | ||
33 | bool parsed = false; | ||
34 | int i, j; | ||
35 | char *name = NULL; | ||
36 | - if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 | ||
37 | + if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 | ||
38 | && string[i] == '\0') | ||
39 | parsed = adjust_to_section (name, &addr, dwfl); | ||
40 | - switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) | ||
41 | + switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) | ||
42 | { | ||
43 | default: | ||
44 | break; | ||