/usr/src/gcc-8/debian/patches/linaro-issue2575.diff is in gcc-8-source 8-20180414-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # DP: Fix ICE in tree_to_shwi, Linaro issue #2575.
--- a/src/gcc/varasm.c
+++ b/src/gcc/varasm.c
@@ -6777,8 +6777,9 @@
anchor range to reduce the amount of instructions require to refer
to the entire declaration. */
if (decl && DECL_SIZE (decl)
- && tree_to_shwi (DECL_SIZE (decl))
- >= (targetm.max_anchor_offset * BITS_PER_UNIT))
+ && (!tree_fits_shwi_p (DECL_SIZE (decl))
+ || tree_to_shwi (DECL_SIZE (decl))
+ >= (targetm.max_anchor_offset * BITS_PER_UNIT)))
return false;
}
|