diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-13 19:09:52 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-22 11:26:13 +0100 |
commit | 761f668af49a3dd3f4326799e33669bdb20d29ed (patch) | |
tree | aa3677b6fae0db1e71e9a452420a5c11bb669e7c /patches | |
parent | 52d842fe7e9b41a01450f5cfe94b6ce483e62704 (diff) | |
download | OSELAS.Toolchain-761f668af49a3dd3f4326799e33669bdb20d29ed.tar.gz OSELAS.Toolchain-761f668af49a3dd3f4326799e33669bdb20d29ed.tar.xz |
[cross-gcc] gcc-linaro-4.5-2011.02-0: add patch from debian
This is to fix built issues with Qt and others.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/gcc-linaro-4.5-2011.02-0/0016-debian-patch-revert-issue1259.patch | 40 | ||||
-rw-r--r-- | patches/gcc-linaro-4.5-2011.02-0/series | 3 |
2 files changed, 43 insertions, 0 deletions
diff --git a/patches/gcc-linaro-4.5-2011.02-0/0016-debian-patch-revert-issue1259.patch b/patches/gcc-linaro-4.5-2011.02-0/0016-debian-patch-revert-issue1259.patch new file mode 100644 index 0000000..fbadd34 --- /dev/null +++ b/patches/gcc-linaro-4.5-2011.02-0/0016-debian-patch-revert-issue1259.patch @@ -0,0 +1,40 @@ +# DP: Revert change for Linaro issue #1259, Do not default to +# DP: -fstrict-volatile-bitfields on arm. LP: #675347. + +2010-10-26 Jie Zhang <jie@codesourcery.com> + + Issue #1259 + + Backport from mainline: + + gcc/ + 2010-10-26 Jie Zhang <jie@codesourcery.com> + + * stor-layout.c (layout_decl): Use the field's type to + determine the mode and keep DECL_BIT_FIELD for a volatile + bit-field. + * config/arm/arm.c (arm_override_options): Default to + -fstrict-volatile-bitfields. + + gcc/testsuite/ + 2010-10-26 Jie Zhang <jie@codesourcery.com> + + * gcc.target/arm/volatile-bitfields-1.c: New test. + * gcc.target/arm/volatile-bitfields-2.c: New test. + * gcc.target/arm/volatile-bitfields-3.c: New test. + + +--- a/gcc/config/arm/arm.c ++++ b/gcc/config/arm/arm.c +@@ -1933,11 +1933,6 @@ + calculation, which is 2 instructions. */ + set_param_value ("gcse-unrestricted-cost", 2); + +- /* ARM EABI defaults to strict volatile bitfields. */ +- if (TARGET_AAPCS_BASED && flag_strict_volatile_bitfields < 0 +- && abi_version_at_least(2)) +- flag_strict_volatile_bitfields = 1; +- + /* Register global variables with the garbage collector. */ + arm_add_gc_roots (); + diff --git a/patches/gcc-linaro-4.5-2011.02-0/series b/patches/gcc-linaro-4.5-2011.02-0/series index 3d95ce0..e070f10 100644 --- a/patches/gcc-linaro-4.5-2011.02-0/series +++ b/patches/gcc-linaro-4.5-2011.02-0/series @@ -19,3 +19,6 @@ # from upstream 0015-Fix-libjava-cross-build-issue.patch + +# reverted linaro patch +0016-debian-patch-revert-issue1259.patch |