gcc-4.6.0 related fixes & patch upstream status updates
cover gcc-4.6.0 related fixes & patch upstream status updates
From: Nitin A Kamble <[email protected]>
These are few commits for gcc 4.6.0 & patch upstream status.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: nitin/misc
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/misc
Thanks,
Nitin A Kamble <[email protected]>
---
Khem Raj (2):
gcc-4.6.0: Apply linaro patches
linux-yocto_git.bb: Backport upstream fix for gcc 4.6 compilation
Nitin A Kamble (8):
libpcre: update upstream status for patches patch-2.6.1: update patch upstream status
patch: update upstream status for patches
python-imaging: update upstream status for patches
subversion: update upstream status for patches
sat-solver: fix compilation issue with gcc 4.6.0 gcc-4.5.1: update upstream status of patches
binutils: update upstream status of patches
.../binutils/binutils-2.21/110-arm-eabi-conf.patch | 2 + .../binutils-2.21/binutils-2.19.1-ld-sysroot.patch | 2 + .../binutils/binutils-2.21/binutils-poison.patch | 2 + .../binutils-uclibc-100-uclibc-conf.patch | 2 + .../gcc/gcc-4.5.1/100-uclibc-conf.patch | 2 + .../gcc/gcc-4.5.1/103-uclibc-conf-noupstream.patch | 2 + .../gcc/gcc-4.5.1/200-uclibc-locale.patch | 2 + .../gcc/gcc-4.5.1/203-uclibc-locale-no__x.patch | 2 + .../gcc-4.5.1/204-uclibc-locale-wchar_fix.patch | 2 + .../gcc/gcc-4.5.1/205-uclibc-locale-update.patch | 2 + .../gcc/gcc-4.5.1/301-missing-execinfo_h.patch | 2 + .../gcc/gcc-4.5.1/302-c99-snprintf.patch | 2 + .../gcc/gcc-4.5.1/303-c99-complex-ugly-hack.patch | 2 + .../gcc/gcc-4.5.1/304-index_macro.patch | 2 + .../gcc-4.5.1/305-libmudflap-susv3-legacy.patch | 2 + .../gcc/gcc-4.5.1/306-libstdc++-namespace.patch | 2 + .../gcc/gcc-4.5.1/307-locale_facets.patch | 2 + .../gcc/gcc-4.5.1/602-sdk-libstdc++-includes.patch | 2 + .../recipes-devtools/gcc/gcc-4.5.1/64bithack.patch | 2 + .../gcc/gcc-4.5.1/740-sh-pr24836.patch | 2 + .../gcc/gcc-4.5.1/800-arm-bigendian.patch | 2 + .../gcc/gcc-4.5.1/904-flatten-switch-stmt-00.patch | 2 + .../gcc/gcc-4.5.1/arm-bswapsi2.patch | 2 + .../gcc/gcc-4.5.1/arm-nolibfloat.patch | 2 + .../gcc/gcc-4.5.1/arm-softfloat.patch | 2 + meta/recipes-devtools/gcc/gcc-4.6.0.inc | 4 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patch | 51 ++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patch | 63 ++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patch | 32 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patch | 28 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patch | 653 ++++++++++++++++++++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patch | 126 ++++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patch | 177 ++++++ .../gcc/gcc-4_6-branch-linaro-backports.inc | 9 + .../patch/patch-2.6.1/global-reject-file.diff | 2 + meta/recipes-devtools/patch/patch/debian.patch | 2 + .../patch/patch/global-reject-file.diff | 2 + meta/recipes-devtools/patch/patch/install.patch | 2 + .../patch/patch/unified-reject-files.diff | 2 + .../python/python-imaging/path.patch | 2 + .../subversion/disable-revision-install.patch | 2 + .../subversion/subversion/libtool2.patch | 2 + .../subversion/subversion/neon-detection.patch | 2 + .../sat-solver/fix_gcc-4.6.0_compile_issue.patch | 115 ++++ meta/recipes-extended/sat-solver/sat-solver_git.bb | 5 +- .../perf-tool-Fix-gcc-4.6.0-issues.patch | 266 ++++++++ meta/recipes-kernel/linux/linux-yocto_git.bb | 4 +- .../libpcre/files/fix-pcre-name-collision.patch | 1 + .../recipes-support/libpcre/files/pcre-cross.patch | 2 + 49 files changed, 1602 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4_6-branch-linaro-backports.inc create mode 100644 meta/recipes-extended/sat-solver/sat-solver/fix_gcc-4.6.0_compile_issue.patch create mode 100644 meta/recipes-kernel/linux/linux-yocto/perf-tool-Fix-gcc-4.6.0-issues.patch
Signature · 1 line
1.7.3.4
PATCH 1/10 gcc-4.6.0: Apply linaro patches
From: Khem Raj <[email protected]>
We take the improvements done by linaro for gcc 4.6
--- meta/recipes-devtools/gcc/gcc-4.6.0.inc | 4 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patch | 51 ++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patch | 63 ++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patch | 32 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patch | 28 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patch | 653 ++++++++++++++++++++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patch | 126 ++++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patch | 177 ++++++ .../gcc/gcc-4_6-branch-linaro-backports.inc | 9 + 9 files changed, 1143 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patch create mode 100644 meta/recipes-devtools/gcc/gcc-4_6-branch-linaro-backports.inc
meta/recipes-devtools/gcc/gcc-4.6.0.inc +4 -0
@@ -7,6 +7,9 @@ require gcc-common.inc require gcc-4_6-branch-backports.inc +# Linaro patches for 4.6 branch +require gcc-4_6-branch-linaro-backports.inc + PR = "r1" DEPENDS =+ "mpfr gmp libmpc"
@@ -22,6 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ ${GCC-4_6-BRANCH-BACKPORTS} \ + ${GCC-4_6-BRANCH-LINARO-BACKPORTS} \ file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ file://100-uclibc-conf.patch \ file://gcc-uclibc-locale-ctype_touplow_t.patch \
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patch new file +51 -0
51 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patch new file +63 -0
63 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patch new file +32 -0
@@ -0,0 +1,32 @@ +2011-03-22 Andrew Stubbs <[email protected]> + + Backport from FSF: + + 2011-03-21 Daniel Jacobowitz <[email protected]> + + gcc/ + * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test + for barrier handlers. + +=== modified file 'gcc/config/arm/unwind-arm.c' +--- old/gcc/config/arm/unwind-arm.c 2009-10-30 14:55:10 +0000 ++++ new/gcc/config/arm/unwind-arm.c 2011-03-22 10:59:10 +0000 +@@ -1196,8 +1196,6 @@ + ucbp->barrier_cache.bitpattern[4] = (_uw) &data[1]; + + if (data[0] & uint32_highbit) +- phase2_call_unexpected_after_unwind = 1; +- else + { + data += rtti_count + 1; + /* Setup for entry to the handler. */ +@@ -1207,6 +1205,8 @@ + _Unwind_SetGR (context, 0, (_uw) ucbp); + return _URC_INSTALL_CONTEXT; + } ++ else ++ phase2_call_unexpected_after_unwind = 1; + } + if (data[0] & uint32_highbit) + data++; +
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patch new file +28 -0
@@ -0,0 +1,28 @@ +2011-03-23 Andrew Stubbs <[email protected]> + + Backport from FSF: + + 2011-03-23 Julian Brown <[email protected]> + + gcc/ + * expr.c (expand_expr_real_1): Only use BLKmode for volatile + accesses which are not naturally aligned. + +=== modified file 'gcc/expr.c' +--- old/gcc/expr.c 2011-03-18 09:04:31 +0000 ++++ new/gcc/expr.c 2011-04-05 16:18:11 +0000 +@@ -9147,8 +9147,11 @@ + && modifier != EXPAND_CONST_ADDRESS + && modifier != EXPAND_INITIALIZER) + /* If the field is volatile, we always want an aligned +- access. */ +- || (volatilep && flag_strict_volatile_bitfields > 0) ++ access. Only do this if the access is not already naturally ++ aligned, otherwise "normal" (non-bitfield) volatile fields ++ become non-addressable. */ ++ || (volatilep && flag_strict_volatile_bitfields > 0 ++ && (bitpos % GET_MODE_ALIGNMENT (mode) != 0)) + /* If the field isn't aligned enough to fetch as a memref, + fetch it as a bit field. */ + || (mode1 != BLKmode +
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patch new file +653 -0
653 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patch new file +126 -0
126 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patch new file +177 -0
177 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-4_6-branch-linaro-backports.inc new file +9 -0
@@ -0,0 +1,9 @@ +GCC-4_6-BRANCH-LINARO-BACKPORTS = " \ +file://linaro/gcc-4.6-linaro-r106720.patch \ +file://linaro/gcc-4.6-linaro-r106723.patch \ +file://linaro/gcc-4.6-linaro-r106729.patch \ +file://linaro/gcc-4.6-linaro-r106731.patch \ +file://linaro/gcc-4.6-linaro-r106733.patch \ +file://linaro/gcc-4.6-linaro-r106737.patch \ +file://linaro/gcc-4.6-linaro-r106738.patch \ +"
Signature · 1 line
1.7.3.4
PATCH 2/10 libpcre: update upstream status for patches
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../libpcre/files/fix-pcre-name-collision.patch | 1 + .../recipes-support/libpcre/files/pcre-cross.patch | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-support/libpcre/files/fix-pcre-name-collision.patch +1 -0
@@ -1,3 +1,4 @@ +Upstream-Status="Inappropriate [debian patch]" This patch address a namespace collision with libc.
meta/recipes-support/libpcre/files/pcre-cross.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [configuration]" + To be upstreamable, this patch requires check for *_FOR_BUILD, otherwise it needs to pass special variables.
Signature · 1 line
1.7.3.4
PATCH 3/10 patch-2.6.1: update patch upstream status
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../patch/patch-2.6.1/global-reject-file.diff | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
meta/recipes-devtools/patch/patch-2.6.1/global-reject-file.diff +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [debian patch]" + Index: patch-2.6.1/patch.man =================================================================== --- patch-2.6.1.orig/patch.man
Signature · 1 line
1.7.3.4
PATCH 4/10 patch: update upstream status for patches
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- meta/recipes-devtools/patch/patch/debian.patch | 2 ++ .../patch/patch/global-reject-file.diff | 2 ++ meta/recipes-devtools/patch/patch/install.patch | 2 ++ .../patch/patch/unified-reject-files.diff | 2 ++ 4 files changed, 8 insertions(+), 0 deletions(-)
meta/recipes-devtools/patch/patch/debian.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [debian patch]" + --- patch-2.5.9.orig/m4/hash.m4 +++ patch-2.5.9/m4/hash.m4 @@ -0,0 +1,15 @@
meta/recipes-devtools/patch/patch/global-reject-file.diff +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [debian patch]" + Index: patch-2.5.9/patch.man =================================================================== --- patch-2.5.9.orig/patch.man
meta/recipes-devtools/patch/patch/install.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: patch-2.5.4/Makefile.in =================================================================== --- patch-2.5.4.orig/Makefile.in 2005-03-09 07:23:54.779311824 -0500
meta/recipes-devtools/patch/patch/unified-reject-files.diff +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [debian patch]" + Generate unified diff style reject files. Also include the C function names in reject files whenever possible.
Signature · 1 line
1.7.3.4
PATCH 5/10 python-imaging: update upstream status for patches
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../python/python-imaging/path.patch | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
meta/recipes-devtools/python/python-imaging/path.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: Imaging-1.1.7/setup.py =================================================================== --- Imaging-1.1.7.orig/setup.py
Signature · 1 line
1.7.3.4
PATCH 6/10 subversion: update upstream status for patches
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../subversion/disable-revision-install.patch | 2 ++ .../subversion/subversion/libtool2.patch | 2 ++ .../subversion/subversion/neon-detection.patch | 2 ++ 3 files changed, 6 insertions(+), 0 deletions(-)
meta/recipes-devtools/subversion/subversion/disable-revision-install.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: subversion-1.6.15/Makefile.in =================================================================== --- subversion-1.6.15.orig/Makefile.in 2010-11-17 06:47:23.000000000 -0800
meta/recipes-devtools/subversion/subversion/libtool2.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: subversion-1.5.5/configure.ac =================================================================== --- subversion-1.5.5.orig/configure.ac 2008-08-26 18:27:56.000000000 +0100
meta/recipes-devtools/subversion/subversion/neon-detection.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: subversion-1.6.13/build/ac-macros/neon.m4 =================================================================== --- subversion-1.6.13.orig/build/ac-macros/neon.m4
Signature · 1 line
1.7.3.4
PATCH 7/10 linux-yocto_git.bb: Backport upstream fix for gcc 4.6 compilation
In reply to Nitin A KambleFrom: Khem Raj <[email protected]>
--- .../perf-tool-Fix-gcc-4.6.0-issues.patch | 266 ++++++++++++++++++++ meta/recipes-kernel/linux/linux-yocto_git.bb | 4 +- 2 files changed, 269 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-kernel/linux/linux-yocto/perf-tool-Fix-gcc-4.6.0-issues.patch
meta/recipes-kernel/linux/linux-yocto/perf-tool-Fix-gcc-4.6.0-issues.patch new file +266 -0
@@ -0,0 +1,266 @@ +Backported to linux-yocto kernel git version + +Signed-off-by: Khem Raj <[email protected]> + + +From patchwork Tue Apr 19 20:09:19 2011 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Subject: [70/70] perf tool: Fix gcc 4.6.0 issues +Date: Tue, 19 Apr 2011 20:09:19 -0000 +From: Greg Kroah-Hartman <[email protected]> +X-Patchwork-Id: 719212 +Message-Id: <[email protected]> +To: [email protected], [email protected] +Cc: [email protected], [email protected], + [email protected], [email protected], + Ingo Molnar <[email protected]>, Kyle McMartin <[email protected]>, + Arnaldo Carvalho de Melo <[email protected]>, Thomas Meyer <[email protected]> + +2.6.38-stable review patch. If anyone has any objections, please let us know. + +------------------ + +From: Kyle McMartin <[email protected]> + +commit fb7d0b3cefb80a105f7fd26bbc62e0cbf9192822 upstream. + +GCC 4.6.0 in Fedora rawhide turned up some compile errors in tools/perf +due to the -Werror=unused-but-set-variable flag. + +I've gone through and annotated some of the assignments that had side +effects (ie: return value from a function) with the __used annotation, +and in some cases, just removed unused code. + +In a few cases, we were assigning something useful, but not using it in +later parts of the function. + +kyle@dreadnought:~/src% gcc --version +gcc (GCC) 4.6.0 20110122 (Red Hat 4.6.0-0.3) + +Cc: Ingo Molnar <[email protected]> +LKML-Reference: <[email protected]> +Signed-off-by: Kyle McMartin <[email protected]> +[ committer note: Fixed up the annotation fixes, as that code moved recently ] +Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> +[Backported to 2.6.38.2 by deleting unused but set variables] +Signed-off-by: Thomas Meyer <[email protected]> +Signed-off-by: Greg Kroah-Hartman <[email protected]> + +--- +tools/perf/bench/sched-pipe.c | 2 +- + tools/perf/builtin-sched.c | 12 +++--------- + tools/perf/builtin-top.c | 5 +---- + tools/perf/util/header.c | 2 +- + tools/perf/util/hist.c | 3 --- + tools/perf/util/scripting-engines/trace-event-python.c | 3 +-- + tools/perf/util/symbol.c | 4 ++-- + tools/perf/util/trace-event-parse.c | 2 +- + tools/perf/util/ui/browsers/map.c | 2 +- + 9 files changed, 11 insertions(+), 24 deletions(-) + + + +-- +To unsubscribe from this list: send the line "unsubscribe linux-kernel" in +the body of a message to [email protected] +More majordomo info at http://vger.kernel.org/majordomo-info.html +Please read the FAQ at http://www.tux.org/lkml/ + +Index: linux/tools/perf/bench/sched-pipe.c +=================================================================== +--- linux.orig/tools/perf/bench/sched-pipe.c ++++ linux/tools/perf/bench/sched-pipe.c +@@ -55,7 +55,7 @@ int bench_sched_pipe(int argc, const cha + * discarding returned value of read(), write() + * causes error in building environment for perf + */ +- int ret, wait_stat; ++ int __used ret, wait_stat; + pid_t pid, retpid; + + argc = parse_options(argc, argv, options, +Index: linux/tools/perf/builtin-sched.c +=================================================================== +--- linux.orig/tools/perf/builtin-sched.c ++++ linux/tools/perf/builtin-sched.c +@@ -369,11 +369,6 @@ static void + process_sched_event(struct task_desc *this_task __used, struct sched_atom *atom) + { + int ret = 0; +- u64 now; +- long long delta; +- +- now = get_nsecs(); +- delta = start_time + atom->timestamp - now; + + switch (atom->type) { + case SCHED_EVENT_RUN: +@@ -561,7 +556,7 @@ static void wait_for_tasks(void) + + static void run_one_test(void) + { +- u64 T0, T1, delta, avg_delta, fluct, std_dev; ++ u64 T0, T1, delta, avg_delta, fluct; + + T0 = get_nsecs(); + wait_for_tasks(); +@@ -577,7 +572,6 @@ static void run_one_test(void) + else + fluct = delta - avg_delta; + sum_fluct += fluct; +- std_dev = sum_fluct / nr_runs / sqrt(nr_runs); + if (!run_avg) + run_avg = delta; + run_avg = (run_avg*9 + delta)/10; +@@ -798,7 +792,7 @@ replay_switch_event(struct trace_switch_ + u64 timestamp, + struct thread *thread __used) + { +- struct task_desc *prev, *next; ++ struct task_desc *prev, __used *next; + u64 timestamp0; + s64 delta; + +@@ -1403,7 +1397,7 @@ map_switch_event(struct trace_switch_eve + u64 timestamp, + struct thread *thread __used) + { +- struct thread *sched_out, *sched_in; ++ struct thread *sched_out __used, *sched_in; + int new_shortname; + u64 timestamp0; + s64 delta; +Index: linux/tools/perf/builtin-top.c +=================================================================== +--- linux.orig/tools/perf/builtin-top.c ++++ linux/tools/perf/builtin-top.c +@@ -180,7 +180,6 @@ static int parse_source(struct sym_entry + FILE *file; + char command[PATH_MAX*2]; + const char *path; +- u64 len; + + if (!syme) + return -1; +@@ -209,8 +208,6 @@ static int parse_source(struct sym_entry + } + path = map->dso->long_name; + +- len = sym->end - sym->start; +- + sprintf(command, + "objdump --start-address=%#0*Lx --stop-address=%#0*Lx -dS %s", + BITS_PER_LONG / 4, map__rip_2objdump(map, sym->start), +@@ -1263,7 +1260,7 @@ static int __cmd_top(void) + { + pthread_t thread; + int i, counter; +- int ret; ++ int ret __used; + /* + * FIXME: perf_session__new should allow passing a O_MMAP, so that all this + * mmap reading, etc is encapsulated in it. Use O_WRONLY for now. +Index: linux/tools/perf/util/header.c +=================================================================== +--- linux.orig/tools/perf/util/header.c ++++ linux/tools/perf/util/header.c +@@ -1113,7 +1113,7 @@ int event__synthesize_tracing_data(int f + { + event_t ev; + ssize_t size = 0, aligned_size = 0, padding; +- int err = 0; ++ int err __used = 0; + + memset(&ev, 0, sizeof(ev)); + +Index: linux/tools/perf/util/hist.c +=================================================================== +--- linux.orig/tools/perf/util/hist.c ++++ linux/tools/perf/util/hist.c +@@ -1091,7 +1091,6 @@ int hist_entry__annotate(struct hist_ent + char command[PATH_MAX * 2]; + FILE *file; + int err = 0; +- u64 len; + + if (filename == NULL) { + if (dso->has_build_id) { +@@ -1128,8 +1127,6 @@ fallback: + filename, sym->name, map->unmap_ip(map, sym->start), + map->unmap_ip(map, sym->end)); + +- len = sym->end - sym->start; +- + pr_debug("annotating [%p] %30s : [%p] %30s\n", + dso, dso->long_name, sym, sym->name); + +Index: linux/tools/perf/util/scripting-engines/trace-event-python.c +=================================================================== +--- linux.orig/tools/perf/util/scripting-engines/trace-event-python.c ++++ linux/tools/perf/util/scripting-engines/trace-event-python.c +@@ -248,8 +248,7 @@ static void python_process_event(int cpu + context = PyCObject_FromVoidPtr(scripting_context, NULL); + + PyTuple_SetItem(t, n++, PyString_FromString(handler_name)); +- PyTuple_SetItem(t, n++, +- PyCObject_FromVoidPtr(scripting_context, NULL)); ++ PyTuple_SetItem(t, n++, context); + + if (handler) { + PyTuple_SetItem(t, n++, PyInt_FromLong(cpu)); +Index: linux/tools/perf/util/symbol.c +=================================================================== +--- linux.orig/tools/perf/util/symbol.c ++++ linux/tools/perf/util/symbol.c +@@ -1481,8 +1481,8 @@ int dso__load(struct dso *self, struct m + snprintf(name, size, "%s", self->long_name); + break; + case DSO__ORIG_GUEST_KMODULE: +- if (map->groups && map->groups->machine) +- root_dir = map->groups->machine->root_dir; ++ if (map->groups && machine) ++ root_dir = machine->root_dir; + else + root_dir = ""; + snprintf(name, size, "%s%s", root_dir, self->long_name); +Index: linux/tools/perf/util/trace-event-parse.c +=================================================================== +--- linux.orig/tools/perf/util/trace-event-parse.c ++++ linux/tools/perf/util/trace-event-parse.c +@@ -153,7 +153,7 @@ void parse_proc_kallsyms(char *file, uns + char *next = NULL; + char *addr_str; + char ch; +- int ret; ++ int ret __used; + int i; + + line = strtok_r(file, "\n", &next); +Index: linux/tools/perf/util/ui/browsers/map.c +=================================================================== +--- linux.orig/tools/perf/util/ui/browsers/map.c ++++ linux/tools/perf/util/ui/browsers/map.c +@@ -40,7 +40,7 @@ static int ui_entry__read(const char *ti + out_free_form: + newtPopWindow(); + newtFormDestroy(form); +- return 0; ++ return err; + } + + struct map_browser { +Index: linux/tools/perf/builtin-stat.c +=================================================================== +--- linux.orig/tools/perf/builtin-stat.c ++++ linux/tools/perf/builtin-stat.c +@@ -211,7 +211,7 @@ static void read_counter(int counter) + u64 count[3], single_count[3]; + int cpu; + size_t res, nv; +- int scaled; ++ int scaled __used; + int i, thread; + + count[0] = count[1] = count[2] = 0;
meta/recipes-kernel/linux/linux-yocto_git.bb +3 -1
@@ -35,7 +35,9 @@ PR = "r17" PV = "${LINUX_VERSION}+git${SRCPV}" SRCREV_FORMAT = "meta_machine" -SRC_URI = "git://git.yoctoproject.org/linux-yocto-2.6.37;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta" +SRC_URI = "git://git.yoctoproject.org/linux-yocto-2.6.37;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta \ + file://perf-tool-Fix-gcc-4.6.0-issues.patch \ + " COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64|mpc8315e-rdb|routerstationpro|beagleboard)"
Signature · 1 line
1.7.3.4
Re: [PATCH 07/10] linux-yocto_git.bb: Backport upstream fix for gcc 4.6 compilation
Quoted 1 line · Nitin A Kamble
From: Khem Raj <[email protected]>
This has already been merged into the kernel tree itself, so can be dropped from this series.
Bruce
Quoted 304 lines
Signed-off-by Khem Raj <[email protected]>---
.../perf-tool-Fix-gcc-4.6.0-issues.patch | 266 ++++++++++++++++++++ meta/recipes-kernel/linux/linux-yocto_git.bb | 4 +-2 files changed, 269 insertions(+), 1 deletions(-)create mode 100644
meta/recipes-kernel/linux/linux-yocto/perf-tool-Fix-gcc-4.6.0-issues.patchmeta/recipes-kernel/linux/linux-yocto/perf-tool-Fix-gcc-4.6.0-issues.patch new file +266
-0@@ -0,0 +1,266 @@ +Backported to linux-yocto kernel git version + +Signed-off-by: Khem Raj <[email protected]> + + +From patchwork Tue Apr 19 20:09:19 2011 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Subject: [70/70] perf tool: Fix gcc 4.6.0 issues +Date: Tue, 19 Apr 2011 20:09:19 -0000 +From: Greg Kroah-Hartman <[email protected]> +X-Patchwork-Id: 719212 +Message-Id: <[email protected]> +To: [email protected], [email protected] +Cc: [email protected], [email protected], + [email protected], [email protected], + Ingo Molnar <[email protected]>, Kyle McMartin <[email protected]>, + Arnaldo Carvalho de Melo <[email protected]>, Thomas Meyer <[email protected]> + +2.6.38-stable review patch. If anyone has any objections, please let us know. + +------------------ + +From: Kyle McMartin <[email protected]> + +commit fb7d0b3cefb80a105f7fd26bbc62e0cbf9192822 upstream. + +GCC 4.6.0 in Fedora rawhide turned up some compile errors in tools/perf +due to the -Werror=unused-but-set-variable flag. + +I've gone through and annotated some of the assignments that had side +effects (ie: return value from a function) with the __used annotation, +and in some cases, just removed unused code. + +In a few cases, we were assigning something useful, but not using it in +later parts of the function. + +kyle@dreadnought:~/src% gcc --version +gcc (GCC) 4.6.0 20110122 (Red Hat 4.6.0-0.3) + +Cc: Ingo Molnar <[email protected]> +LKML-Reference: <[email protected]> +Signed-off-by: Kyle McMartin <[email protected]> +[ committer note: Fixed up the annotation fixes, as that code moved recently ] +Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> +[Backported to 2.6.38.2 by deleting unused but set variables] +Signed-off-by: Thomas Meyer <[email protected]> +Signed-off-by: Greg Kroah-Hartman <[email protected]> + +--- +tools/perf/bench/sched-pipe.c | 2 +- + tools/perf/builtin-sched.c | 12 +++--------- + tools/perf/builtin-top.c | 5 +---- + tools/perf/util/header.c | 2 +- + tools/perf/util/hist.c | 3 --- + tools/perf/util/scripting-engines/trace-event-python.c | 3 +-- + tools/perf/util/symbol.c | 4 ++-- + tools/perf/util/trace-event-parse.c | 2 +- + tools/perf/util/ui/browsers/map.c | 2 +- + 9 files changed, 11 insertions(+), 24 deletions(-) + + + +-- +To unsubscribe from this list: send the line "unsubscribe linux-kernel" in +the body of a message to [email protected] +More majordomo info at http://vger.kernel.org/majordomo-info.html +Please read the FAQ at http://www.tux.org/lkml/ + +Index: linux/tools/perf/bench/sched-pipe.c +=================================================================== +--- linux.orig/tools/perf/bench/sched-pipe.c ++++ linux/tools/perf/bench/sched-pipe.c +@@ -55,7 +55,7 @@ int bench_sched_pipe(int argc, const cha + * discarding returned value of read(), write() + * causes error in building environment for perf + */ +- int ret, wait_stat; ++ int __used ret, wait_stat; + pid_t pid, retpid; + + argc = parse_options(argc, argv, options, +Index: linux/tools/perf/builtin-sched.c +=================================================================== +--- linux.orig/tools/perf/builtin-sched.c ++++ linux/tools/perf/builtin-sched.c +@@ -369,11 +369,6 @@ static void + process_sched_event(struct task_desc *this_task __used, struct sched_atom *atom) + { + int ret = 0; +- u64 now; +- long long delta; +- +- now = get_nsecs(); +- delta = start_time + atom->timestamp - now; + + switch (atom->type) { + case SCHED_EVENT_RUN: +@@ -561,7 +556,7 @@ static void wait_for_tasks(void) + + static void run_one_test(void) + { +- u64 T0, T1, delta, avg_delta, fluct, std_dev; ++ u64 T0, T1, delta, avg_delta, fluct; + + T0 = get_nsecs(); + wait_for_tasks(); +@@ -577,7 +572,6 @@ static void run_one_test(void) + else + fluct = delta - avg_delta; + sum_fluct += fluct; +- std_dev = sum_fluct / nr_runs / sqrt(nr_runs); + if (!run_avg) + run_avg = delta; + run_avg = (run_avg*9 + delta)/10; +@@ -798,7 +792,7 @@ replay_switch_event(struct trace_switch_ + u64 timestamp, + struct thread *thread __used) + { +- struct task_desc *prev, *next; ++ struct task_desc *prev, __used *next; + u64 timestamp0; + s64 delta; + +@@ -1403,7 +1397,7 @@ map_switch_event(struct trace_switch_eve + u64 timestamp, + struct thread *thread __used) + { +- struct thread *sched_out, *sched_in; ++ struct thread *sched_out __used, *sched_in; + int new_shortname; + u64 timestamp0; + s64 delta; +Index: linux/tools/perf/builtin-top.c +=================================================================== +--- linux.orig/tools/perf/builtin-top.c ++++ linux/tools/perf/builtin-top.c +@@ -180,7 +180,6 @@ static int parse_source(struct sym_entry + FILE *file; + char command[PATH_MAX*2]; + const char *path; +- u64 len; + + if (!syme) + return -1; +@@ -209,8 +208,6 @@ static int parse_source(struct sym_entry + } + path = map->dso->long_name; + +- len = sym->end - sym->start; +- + sprintf(command, + "objdump --start-address=%#0*Lx --stop-address=%#0*Lx -dS %s", + BITS_PER_LONG / 4, map__rip_2objdump(map, sym->start), +@@ -1263,7 +1260,7 @@ static int __cmd_top(void) + { + pthread_t thread; + int i, counter; +- int ret; ++ int ret __used; + /* + * FIXME: perf_session__new should allow passing a O_MMAP, so that all this + * mmap reading, etc is encapsulated in it. Use O_WRONLY for now. +Index: linux/tools/perf/util/header.c +=================================================================== +--- linux.orig/tools/perf/util/header.c ++++ linux/tools/perf/util/header.c +@@ -1113,7 +1113,7 @@ int event__synthesize_tracing_data(int f + { + event_t ev; + ssize_t size = 0, aligned_size = 0, padding; +- int err = 0; ++ int err __used = 0; + + memset(&ev, 0, sizeof(ev)); + +Index: linux/tools/perf/util/hist.c +=================================================================== +--- linux.orig/tools/perf/util/hist.c ++++ linux/tools/perf/util/hist.c +@@ -1091,7 +1091,6 @@ int hist_entry__annotate(struct hist_ent + char command[PATH_MAX * 2]; + FILE *file; + int err = 0; +- u64 len; + + if (filename == NULL) { + if (dso->has_build_id) { +@@ -1128,8 +1127,6 @@ fallback: + filename, sym->name, map->unmap_ip(map, sym->start), + map->unmap_ip(map, sym->end)); + +- len = sym->end - sym->start; +- + pr_debug("annotating [%p] %30s : [%p] %30s\n", + dso, dso->long_name, sym, sym->name); + +Index: linux/tools/perf/util/scripting-engines/trace-event-python.c +=================================================================== +--- linux.orig/tools/perf/util/scripting-engines/trace-event-python.c ++++ linux/tools/perf/util/scripting-engines/trace-event-python.c +@@ -248,8 +248,7 @@ static void python_process_event(int cpu + context = PyCObject_FromVoidPtr(scripting_context, NULL); + + PyTuple_SetItem(t, n++, PyString_FromString(handler_name)); +- PyTuple_SetItem(t, n++, +- PyCObject_FromVoidPtr(scripting_context, NULL)); ++ PyTuple_SetItem(t, n++, context); + + if (handler) { + PyTuple_SetItem(t, n++, PyInt_FromLong(cpu)); +Index: linux/tools/perf/util/symbol.c +=================================================================== +--- linux.orig/tools/perf/util/symbol.c ++++ linux/tools/perf/util/symbol.c +@@ -1481,8 +1481,8 @@ int dso__load(struct dso *self, struct m + snprintf(name, size, "%s", self->long_name); + break; + case DSO__ORIG_GUEST_KMODULE: +- if (map->groups && map->groups->machine) +- root_dir = map->groups->machine->root_dir; ++ if (map->groups && machine) ++ root_dir = machine->root_dir; + else + root_dir = ""; + snprintf(name, size, "%s%s", root_dir, self->long_name); +Index: linux/tools/perf/util/trace-event-parse.c +=================================================================== +--- linux.orig/tools/perf/util/trace-event-parse.c ++++ linux/tools/perf/util/trace-event-parse.c +@@ -153,7 +153,7 @@ void parse_proc_kallsyms(char *file, uns + char *next = NULL; + char *addr_str; + char ch; +- int ret; ++ int ret __used; + int i; + + line = strtok_r(file, "\n", &next); +Index: linux/tools/perf/util/ui/browsers/map.c +=================================================================== +--- linux.orig/tools/perf/util/ui/browsers/map.c ++++ linux/tools/perf/util/ui/browsers/map.c +@@ -40,7 +40,7 @@ static int ui_entry__read(const char *ti + out_free_form: + newtPopWindow(); + newtFormDestroy(form); +- return 0; ++ return err; + } + + struct map_browser { +Index: linux/tools/perf/builtin-stat.c +=================================================================== +--- linux.orig/tools/perf/builtin-stat.c ++++ linux/tools/perf/builtin-stat.c +@@ -211,7 +211,7 @@ static void read_counter(int counter) + u64 count[3], single_count[3]; + int cpu; + size_t res, nv; +- int scaled; ++ int scaled __used; + int i, thread; + + count[0] = count[1] = count[2] = 0;meta/recipes-kernel/linux/linux-yocto_git.bb +0
-0@@ -35,7 +35,9 @@ PR = "r17"PV = "${LINUX_VERSION}+git${SRCPV}"
SRCREV_FORMAT = "meta_machine"meta/recipes-kernel/linux/linux-yocto_git.bb +3
-1-SRC_URI = "git://git.yoctoproject.org/linux-yocto-2.6.37;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta" +SRC_URI = "git://git.yoctoproject.org/linux-yocto-2.6.37;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta \ + file://perf-tool-Fix-gcc-4.6.0-issues.patch \ + "COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64|mpc8315e-rdb|routerstationpro|beagleboard)"
--
1.7.3.4_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
PATCH 8/10 sat-solver: fix compilation issue with gcc 4.6.0
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../sat-solver/fix_gcc-4.6.0_compile_issue.patch | 115 ++++++++++++++++++++ meta/recipes-extended/sat-solver/sat-solver_git.bb | 5 +- 2 files changed, 119 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-extended/sat-solver/sat-solver/fix_gcc-4.6.0_compile_issue.patch
meta/recipes-extended/sat-solver/sat-solver/fix_gcc-4.6.0_compile_issue.patch new file +115 -0
@@ -0,0 +1,115 @@ +Upstream-Status="Pending" + +Fix the following compilation issues with gcc 4.6.0 + +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_updateinfoxml.c: In function 'startElement': +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_updateinfoxml.c:278:25: error: variable 'status' set but not used [-Werror=unused-but-set-variable] +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_updateinfoxml.c:386:36: error: variable 'src' set but not used [-Werror=unused-but-set-variable] +| cc1: all warnings being treated as errors +| +| make[2]: *** [ext/CMakeFiles/satsolverext.dir/repo_updateinfoxml.o] Error 1 +| make[2]: *** Waiting for unfinished jobs.... +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/src/transaction.c: In function 'transaction_add_obsoleted': +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/src/transaction.c:1933:21: error: variable 'oldcount' set but not used [-Werror=unused-but-set-variable] +| cc1: all warnings being treated as errors +| +| make[2]: *** [src/CMakeFiles/satsolver.dir/transaction.o] Error 1 +| make[2]: Leaving directory `/build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git' +| make[1]: *** [src/CMakeFiles/satsolver.dir/all] Error 2 +| make[1]: *** Waiting for unfinished jobs.... +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_rpmdb.c: In function 'rpm_byfp': +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_rpmdb.c:2406:20: error: variable 'headerend' set but not used [-Werror=unused-but-set-variable] +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_rpmdb.c: In function 'parsekeydata': +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_rpmdb.c:2833:29: error: variable 'scr' set but not used [-Werror=unused-but-set-variable] +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_rpmdb.c:2669:7: error: variable 'useridl' set but not used [-Werror=unused-but-set-variable] +| /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git/ext/repo_rpmdb.c:2667:7: error: variable 'pubkeyl' set but not used [-Werror=unused-but-set-variable] +| cc1: all warnings being treated as errors +| +| make[2]: *** [ext/CMakeFiles/satsolverext.dir/repo_rpmdb.o] Error 1 +| make[2]: Leaving directory `/build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git' +| make[1]: *** [ext/CMakeFiles/satsolverext.dir/all] Error 2 +| make[1]: Leaving directory `/build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/git' +| make: *** [all] Error 2 +| FATAL: oe_runmake failed +| ERROR: Function 'do_compile' failed (see /build_disk/poky_build/build_gcc_4.6.0/tmp/work/qemux86-poky-linux/sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9/temp/log.do_compile.21830 for further information) +NOTE: package sat-solver-0.0-git1+0a7378d5f482f477a01cf1690d76871ab8bdcc32-r9: task do_compile: Failed + +Nitin A Kamble <[email protected]> 2011/05/05 + +Index: git/src/transaction.c +=================================================================== +--- git.orig/src/transaction.c ++++ git/src/transaction.c +@@ -1930,7 +1930,7 @@ transaction_add_obsoleted(Transaction *t + Repo *installed = pool->installed; + Id p; + Solvable *s; +- int i, j, k, max, oldcount; ++ int i, j, k, max; + Map done; + Queue obsq, *steps; + +@@ -1945,7 +1945,6 @@ transaction_add_obsoleted(Transaction *t + return; + /* make room */ + steps = &trans->steps; +- oldcount = steps->count; + queue_insertn(steps, 0, max); + + /* now add em */ +Index: git/ext/repo_updateinfoxml.c +=================================================================== +--- git.orig/ext/repo_updateinfoxml.c ++++ git/ext/repo_updateinfoxml.c +@@ -275,7 +275,7 @@ startElement(void *userData, const char + */ + case STATE_UPDATE: + { +- const char *from = 0, *status = 0, *type = 0, *version = 0; ++ const char *from = 0, __attribute__((__unused__)) *status = 0, *type = 0, *version = 0; + for (; *atts; atts += 2) + { + if (!strcmp(*atts, "from")) +@@ -383,7 +383,7 @@ startElement(void *userData, const char + */ + case STATE_PACKAGE: + { +- const char *arch = 0, *name = 0, *src = 0; ++ const char *arch = 0, *name = 0, __attribute__((__unused__)) *src = 0; + Id evr = makeevr_atts(pool, pd, atts); /* parse "epoch", "version", "release" */ + Id n, a = 0; + Id rel_id; +Index: git/ext/repo_rpmdb.c +=================================================================== +--- git.orig/ext/repo_rpmdb.c ++++ git/ext/repo_rpmdb.c +@@ -2403,7 +2403,7 @@ void * + rpm_byfp(FILE *fp, const char *name, void **statep) + { + struct rpm_by_state *state = *statep; +- int headerstart, headerend; ++ int headerstart, __attribute__((__unused__))headerend; + RpmHead *rpmhead; + int sigdsize, sigcnt, l; + unsigned char lead[4096]; +@@ -2664,9 +2664,9 @@ parsekeydata(Solvable *s, Repodata *data + unsigned char keyid[8]; + unsigned int kcr = 0, maxex = 0; + unsigned char *pubkey = 0; +- int pubkeyl = 0; ++ int __attribute__((__unused__)) pubkeyl = 0; + unsigned char *userid = 0; +- int useridl = 0; ++ int __attribute__((__unused__)) useridl = 0; + + for (; pl; p += l, pl -= l) + { +@@ -2830,7 +2830,7 @@ parsekeydata(Solvable *s, Repodata *data + { + int j, ql, haveissuer; + unsigned char *q; +- unsigned int ex = 0, scr = 0; ++ unsigned int ex = 0, __attribute__((__unused__))scr = 0; + unsigned char issuer[8]; + + // printf("V4 signature packet\n");
meta/recipes-extended/sat-solver/sat-solver_git.bb +4 -1
@@ -8,7 +8,9 @@ DEPENDS = "libcheck rpm zlib expat db" SRCREV = "0a7378d5f482f477a01cf1690d76871ab8bdcc32" PV = "0.0-git${SRCPV}" -PR = "r9" +PR = "r10" + +PARALLEL_MAKE="" SRC_URI = "git://gitorious.org/opensuse/sat-solver.git;protocol=git \ file://sat-solver_rpm5.patch \
@@ -16,6 +18,7 @@ SRC_URI = "git://gitorious.org/opensuse/sat-solver.git;protocol=git \ file://cmake.patch \ file://db5.patch \ file://sat-solver_core.patch \ + file://fix_gcc-4.6.0_compile_issue.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
1.7.3.4
PATCH 9/10 gcc-4.5.1: update upstream status of patches
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../gcc/gcc-4.5.1/100-uclibc-conf.patch | 2 ++ .../gcc/gcc-4.5.1/103-uclibc-conf-noupstream.patch | 2 ++ .../gcc/gcc-4.5.1/200-uclibc-locale.patch | 2 ++ .../gcc/gcc-4.5.1/203-uclibc-locale-no__x.patch | 2 ++ .../gcc-4.5.1/204-uclibc-locale-wchar_fix.patch | 2 ++ .../gcc/gcc-4.5.1/205-uclibc-locale-update.patch | 2 ++ .../gcc/gcc-4.5.1/301-missing-execinfo_h.patch | 2 ++ .../gcc/gcc-4.5.1/302-c99-snprintf.patch | 2 ++ .../gcc/gcc-4.5.1/303-c99-complex-ugly-hack.patch | 2 ++ .../gcc/gcc-4.5.1/304-index_macro.patch | 2 ++ .../gcc-4.5.1/305-libmudflap-susv3-legacy.patch | 2 ++ .../gcc/gcc-4.5.1/306-libstdc++-namespace.patch | 2 ++ .../gcc/gcc-4.5.1/307-locale_facets.patch | 2 ++ .../gcc/gcc-4.5.1/602-sdk-libstdc++-includes.patch | 2 ++ .../recipes-devtools/gcc/gcc-4.5.1/64bithack.patch | 2 ++ .../gcc/gcc-4.5.1/740-sh-pr24836.patch | 2 ++ .../gcc/gcc-4.5.1/800-arm-bigendian.patch | 2 ++ .../gcc/gcc-4.5.1/904-flatten-switch-stmt-00.patch | 2 ++ .../gcc/gcc-4.5.1/arm-bswapsi2.patch | 2 ++ .../gcc/gcc-4.5.1/arm-nolibfloat.patch | 2 ++ .../gcc/gcc-4.5.1/arm-softfloat.patch | 2 ++ 21 files changed, 42 insertions(+), 0 deletions(-)
meta/recipes-devtools/gcc/gcc-4.5.1/100-uclibc-conf.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.3.1/contrib/regression/objs-gcc.sh =================================================================== --- gcc-4.3.1.orig/contrib/regression/objs-gcc.sh 2007-12-24 15:18:57.000000000 -0800
meta/recipes-devtools/gcc/gcc-4.5.1/103-uclibc-conf-noupstream.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Corrects sub machine arch corectly Index: gcc-4.5.0/gcc/config.gcc
meta/recipes-devtools/gcc/gcc-4.5.1/200-uclibc-locale.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5.0/libstdc++-v3/acinclude.m4 =================================================================== --- gcc-4.5.0.orig/libstdc++-v3/acinclude.m4 2010-04-05 18:27:44.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/203-uclibc-locale-no__x.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.3.1/libstdc++-v3/config/locale/uclibc/c++locale_internal.h =================================================================== --- gcc-4.3.1.orig/libstdc++-v3/config/locale/uclibc/c++locale_internal.h 2008-08-16 01:29:20.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + --- gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc.uclibc200_wchar~ 2006-03-10 15:32:37 +0100 +++ gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2006-03-10 15:37:27 +0100 @@ -401,7 +401,7 @@
meta/recipes-devtools/gcc/gcc-4.5.1/205-uclibc-locale-update.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.cc =================================================================== --- gcc-4.3.2.orig/libstdc++-v3/config/locale/uclibc/c_locale.cc 2008-09-17 22:35:28.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/301-missing-execinfo_h.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5.0/boehm-gc/include/gc.h =================================================================== --- gcc-4.5.0.orig/boehm-gc/include/gc.h 2007-04-23 14:10:09.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/302-c99-snprintf.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5.0/libstdc++-v3/include/c_std/cstdio =================================================================== --- gcc-4.5.0.orig/libstdc++-v3/include/c_std/cstdio 2010-02-04 10:20:34.000000000 -0800
meta/recipes-devtools/gcc/gcc-4.5.1/303-c99-complex-ugly-hack.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: gcc-4.5.0/libstdc++-v3/configure =================================================================== --- gcc-4.5.0.orig/libstdc++-v3/configure 2010-06-25 10:48:37.488384191 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/304-index_macro.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5.0/libstdc++-v3/include/ext/rope =================================================================== --- gcc-4.5.0.orig/libstdc++-v3/include/ext/rope 2009-04-09 08:00:19.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/305-libmudflap-susv3-legacy.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + Index: gcc-4.5.0/libmudflap/mf-hooks2.c =================================================================== --- gcc-4.5.0.orig/libmudflap/mf-hooks2.c 2009-04-09 08:00:19.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/306-libstdc++-namespace.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5.0/libstdc++-v3/config/locale/uclibc/messages_members.h =================================================================== --- gcc-4.5.0.orig/libstdc++-v3/config/locale/uclibc/messages_members.h 2010-06-25 10:49:07.024632961 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/307-locale_facets.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + This patch fixes a bug into ostream::operator<<(double) due to the wrong size passed into the __convert_from_v method. The wrong size is then passed to std::snprintf function, that, on uClibc, doens't handle sized 0 buffer.
meta/recipes-devtools/gcc/gcc-4.5.1/602-sdk-libstdc++-includes.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + --- gcc-4.1.0/libstdc++-v3/fragment.am 2005-03-21 11:40:14.000000000 -0600 +++ gcc-4.1.0-patched/libstdc++-v3/fragment.am 2005-04-25 20:14:39.856251785 -0500 @@ -21,5 +21,5 @@
meta/recipes-devtools/gcc/gcc-4.5.1/64bithack.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [embedded specific]" + By default gcc places 64 bit libs in a lib64 directory. This makes it use "lib" instead.
meta/recipes-devtools/gcc/gcc-4.5.1/740-sh-pr24836.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
meta/recipes-devtools/gcc/gcc-4.5.1/800-arm-bigendian.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + By Lennert Buytenhek <[email protected]> Adds support for arm*b-linux* big-endian ARM targets
meta/recipes-devtools/gcc/gcc-4.5.1/904-flatten-switch-stmt-00.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Hi, The attached patch makes sure that we create smaller object code for
meta/recipes-devtools/gcc/gcc-4.5.1/arm-bswapsi2.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5/gcc/config/arm/arm.md =================================================================== --- gcc-4.5.orig/gcc/config/arm/arm.md 2010-06-17 09:13:07.000000000 -0700
meta/recipes-devtools/gcc/gcc-4.5.1/arm-nolibfloat.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + # Dimitry Andric <[email protected]>, 2004-05-01 # # * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
meta/recipes-devtools/gcc/gcc-4.5.1/arm-softfloat.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + Index: gcc-4.5.0/gcc/config/arm/t-linux =================================================================== --- gcc-4.5.0.orig/gcc/config/arm/t-linux 2009-04-21 12:03:23.000000000 -0700
Signature · 1 line
1.7.3.4
PATCH 10/10 binutils: update upstream status of patches
In reply to Nitin A KambleFrom: Nitin A Kamble <[email protected]>
--- .../binutils/binutils-2.21/110-arm-eabi-conf.patch | 2 ++ .../binutils-2.21/binutils-2.19.1-ld-sysroot.patch | 2 ++ .../binutils/binutils-2.21/binutils-poison.patch | 2 ++ .../binutils-uclibc-100-uclibc-conf.patch | 2 ++ 4 files changed, 8 insertions(+), 0 deletions(-)
meta/recipes-devtools/binutils/binutils-2.21/110-arm-eabi-conf.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + --- /tmp/configure.ac 2008-06-22 14:14:59.000000000 +0200 +++ binutils-2.18.50.0.7/configure.ac 2008-06-22 14:15:30.000000000 +0200 @@ -561,7 +561,7 @@
meta/recipes-devtools/binutils/binutils-2.21/binutils-2.19.1-ld-sysroot.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + http://sourceware.org/bugzilla/show_bug.cgi?id=10340 Signed-off-by: Sven Rebhan <[email protected]>
meta/recipes-devtools/binutils/binutils-2.21/binutils-poison.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Inappropriate [distribution: codesourcery]" + Patch originally created by Mark Hatle, forward-ported to binutils 2.21 by Scott Garman.
meta/recipes-devtools/binutils/binutils-2.21/binutils-uclibc-100-uclibc-conf.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status="Pending" + --- binutils-2.18.orig/configure +++ binutils-2.18/configure @@ -2206,7 +2206,7 @@
Signature · 1 line
1.7.3.4
Quoted 77 lines · Nitin A Kamble
From: Nitin A Kamble<[email protected]>
These are few commits for gcc 4.6.0& patch upstream status.
Pull URL:
git://git.pokylinux.org/poky-contrib.git
Branch: nitin/misc
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/miscThanks,
Nitin A Kamble<[email protected]>
---Khem Raj (2):
gcc-4.6.0: Apply linaro patches
linux-yocto_git.bb: Backport upstream fix for gcc 4.6 compilationNitin A Kamble (8):
libpcre: update upstream status for patches patch-2.6.1: update patch upstream status
patch: update upstream status for patches
python-imaging: update upstream status for patches
subversion: update upstream status for patches
sat-solver: fix compilation issue with gcc 4.6.0 gcc-4.5.1: update upstream status of patches
binutils: update upstream status of patches.../binutils/binutils-2.21/110-arm-eabi-conf.patch | 2 + .../binutils-2.21/binutils-2.19.1-ld-sysroot.patch | 2 + .../binutils/binutils-2.21/binutils-poison.patch | 2 + .../binutils-uclibc-100-uclibc-conf.patch | 2 + .../gcc/gcc-4.5.1/100-uclibc-conf.patch | 2 + .../gcc/gcc-4.5.1/103-uclibc-conf-noupstream.patch | 2 + .../gcc/gcc-4.5.1/200-uclibc-locale.patch | 2 + .../gcc/gcc-4.5.1/203-uclibc-locale-no__x.patch | 2 + .../gcc-4.5.1/204-uclibc-locale-wchar_fix.patch | 2 + .../gcc/gcc-4.5.1/205-uclibc-locale-update.patch | 2 + .../gcc/gcc-4.5.1/301-missing-execinfo_h.patch | 2 + .../gcc/gcc-4.5.1/302-c99-snprintf.patch | 2 + .../gcc/gcc-4.5.1/303-c99-complex-ugly-hack.patch | 2 + .../gcc/gcc-4.5.1/304-index_macro.patch | 2 + .../gcc-4.5.1/305-libmudflap-susv3-legacy.patch | 2 + .../gcc/gcc-4.5.1/306-libstdc++-namespace.patch | 2 + .../gcc/gcc-4.5.1/307-locale_facets.patch | 2 + .../gcc/gcc-4.5.1/602-sdk-libstdc++-includes.patch | 2 + .../recipes-devtools/gcc/gcc-4.5.1/64bithack.patch | 2 + .../gcc/gcc-4.5.1/740-sh-pr24836.patch | 2 + .../gcc/gcc-4.5.1/800-arm-bigendian.patch | 2 + .../gcc/gcc-4.5.1/904-flatten-switch-stmt-00.patch | 2 + .../gcc/gcc-4.5.1/arm-bswapsi2.patch | 2 + .../gcc/gcc-4.5.1/arm-nolibfloat.patch | 2 + .../gcc/gcc-4.5.1/arm-softfloat.patch | 2 + meta/recipes-devtools/gcc/gcc-4.6.0.inc | 4 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patch | 51 ++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patch | 63 ++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patch | 32 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patch | 28 + .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patch | 653 ++++++++++++++++++++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patch | 126 ++++ .../gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patch | 177 ++++++ .../gcc/gcc-4_6-branch-linaro-backports.inc | 9 + .../patch/patch-2.6.1/global-reject-file.diff | 2 + meta/recipes-devtools/patch/patch/debian.patch | 2 + .../patch/patch/global-reject-file.diff | 2 + meta/recipes-devtools/patch/patch/install.patch | 2 + .../patch/patch/unified-reject-files.diff | 2 + .../python/python-imaging/path.patch | 2 + .../subversion/disable-revision-install.patch | 2 + .../subversion/subversion/libtool2.patch | 2 + .../subversion/subversion/neon-detection.patch | 2 + .../sat-solver/fix_gcc-4.6.0_compile_issue.patch | 115 ++++ meta/recipes-extended/sat-solver/sat-solver_git.bb | 5 +- .../perf-tool-Fix-gcc-4.6.0-issues.patch | 266 ++++++++ meta/recipes-kernel/linux/linux-yocto_git.bb | 4 +- .../libpcre/files/fix-pcre-name-collision.patch | 1 + .../recipes-support/libpcre/files/pcre-cross.patch | 2 + 49 files changed, 1602 insertions(+), 2 deletions(-)
Quoted 11 lines
create mode 100644
meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106720.patchcreate mode 100644meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106723.patchcreate mode 100644meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106729.patchcreate mode 100644meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106731.patchcreate mode 100644meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106733.patchcreate mode 100644meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106737.patchcreate mode 100644meta/recipes-devtools/gcc/gcc-4.6.0/linaro/gcc-4.6-linaro-r106738.patchcreate mode 100644 meta/recipes-devtools/gcc/gcc-4_6-branch-linaro-backports.inc create mode 100644meta/recipes-extended/sat-solver/sat-solver/fix_gcc-4.6.0_compile_issue.patchcreate mode 100644meta/recipes-kernel/linux/linux-yocto/perf-tool-Fix-gcc-4.6.0-issues.patch
Merged in oe-core and Master
Thanks
Sau!