summaryrefslogtreecommitdiff
path: root/system/gcc/backport-r268048-memcpy-bounds.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-06 23:16:01 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-06 23:16:01 +0000
commit89573ea3c2e8ec27ad4433a00fa238f7be475c54 (patch)
tree6049e4ced30aa035ee4329c854e6d3a904b64b4b /system/gcc/backport-r268048-memcpy-bounds.patch
parent13681fb4e751a04a9c4ffa6c0eccfa089c50e235 (diff)
downloadpackages-89573ea3c2e8ec27ad4433a00fa238f7be475c54.tar.gz
packages-89573ea3c2e8ec27ad4433a00fa238f7be475c54.tar.bz2
packages-89573ea3c2e8ec27ad4433a00fa238f7be475c54.tar.xz
packages-89573ea3c2e8ec27ad4433a00fa238f7be475c54.zip
system/gcc: Fix ppc32 kernel build; POSIXise builtin snprintf
Diffstat (limited to 'system/gcc/backport-r268048-memcpy-bounds.patch')
-rw-r--r--system/gcc/backport-r268048-memcpy-bounds.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/system/gcc/backport-r268048-memcpy-bounds.patch b/system/gcc/backport-r268048-memcpy-bounds.patch
new file mode 100644
index 000000000..eebecd832
--- /dev/null
+++ b/system/gcc/backport-r268048-memcpy-bounds.patch
@@ -0,0 +1,21 @@
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88273
+
+GCC 8.2+ fails to build 32-bit PowerPC kernel due to this.
+
+--- trunk/gcc/gimple-ssa-warn-restrict.c 2019/01/17 16:33:55 268037
++++ trunk/gcc/gimple-ssa-warn-restrict.c 2019/01/17 22:52:47 268048
+@@ -319,13 +319,9 @@
+ offrange[0] += offset_int::from (min, SIGNED);
+ offrange[1] += offset_int::from (max, SIGNED);
+ }
+- else if (rng == VR_ANTI_RANGE)
+- {
+- offrange[0] += offset_int::from (max + 1, SIGNED);
+- offrange[1] += offset_int::from (min - 1, SIGNED);
+- }
+ else
+ {
++ /* Handle an anti-range the same as no range at all. */
+ gimple *stmt = SSA_NAME_DEF_STMT (offset);
+ tree type;
+ if (is_gimple_assign (stmt)