diff options
| author | Khem Raj <raj.khem@gmail.com> | 2013-06-27 08:38:37 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-28 09:14:07 +0100 |
| commit | 3030bbd85de6af30c4c515b04434ac95d762927a (patch) | |
| tree | fd5c68c79def42cbcae3f4f60bdd7b9f95444714 /meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch | |
| parent | 9b007f61b20b3f1bb20eaf2bc80f1abd797dc9a5 (diff) | |
| download | poky-3030bbd85de6af30c4c515b04434ac95d762927a.tar.gz | |
gcc-4.8: Fix ICE on ppc/spe targets
Rename patches to make them easly to apply with git
(From OE-Core rev: 040a55d0b730bf78aad0f51e0018faa88655e279)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch b/meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch new file mode 100644 index 0000000000..c27e009619 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | When cross compiling a target gcc, target flags may be used on the host | ||
| 2 | |||
| 3 | Configure identifies a number of warning flags (WARN_CFLAGS and | ||
| 4 | WARN_CXXFLAGS) from the $CC value. The cross compiler may be different | ||
| 5 | from the host compiler and may not support the same set of flags. This | ||
| 6 | leads to problems such as: | ||
| 7 | |||
| 8 | cc1plus: error: unrecognized command line option "-Wno-narrowing" | ||
| 9 | cc1plus: error: unrecognized command line option "-Wno-overlength-strings" | ||
| 10 | |||
| 11 | Work around this problem by removing the warning flags from the | ||
| 12 | BUILD_CXXFLAGS value, in a way similar to the BUILD_CFLAGS. | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
| 17 | |||
| 18 | Index: gcc-4.8.0/gcc/configure | ||
| 19 | =================================================================== | ||
| 20 | --- gcc-4.8.0.orig/gcc/configure | ||
| 21 | +++ gcc-4.8.0/gcc/configure | ||
| 22 | @@ -11720,6 +10581,7 @@ STMP_FIXINC=stmp-fixinc | ||
| 23 | if test x$build != x$host || test "x$coverage_flags" != x | ||
| 24 | then | ||
| 25 | BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' | ||
| 26 | + BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' | ||
| 27 | BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' | ||
| 28 | fi | ||
| 29 | |||
| 30 | Index: gcc-4.8.0/gcc/configure.ac | ||
| 31 | =================================================================== | ||
| 32 | --- gcc-4.8.0.orig/gcc/configure.ac | ||
| 33 | +++ gcc-4.8.0/gcc/configure.ac | ||
| 34 | @@ -1901,6 +1901,7 @@ STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_F | ||
| 35 | if test x$build != x$host || test "x$coverage_flags" != x | ||
| 36 | then | ||
| 37 | BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' | ||
| 38 | + BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' | ||
| 39 | BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' | ||
| 40 | fi | ||
| 41 | |||
