summaryrefslogtreecommitdiff
path: root/debian/patches/m68k-revert-pr45144.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
commit42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch)
tree3bf47de81cf1f89892789535a036d2d55d93a136 /debian/patches/m68k-revert-pr45144.diff
downloadgcc-9-42156b5190f4fa150e1fab6777eb81e69d4db8c9.tar.gz
Imported gcc-6 (6.3.0-17)debian/6.3.0-17
Diffstat (limited to 'debian/patches/m68k-revert-pr45144.diff')
-rw-r--r--debian/patches/m68k-revert-pr45144.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/m68k-revert-pr45144.diff b/debian/patches/m68k-revert-pr45144.diff
new file mode 100644
index 0000000..e7318d4
--- /dev/null
+++ b/debian/patches/m68k-revert-pr45144.diff
@@ -0,0 +1,20 @@
+[revert the minor PR45144 missed-optimization fix because it
+ results in miscompilation of gnat on m68k with gcc-4.6 and 4.5;
+ with gcc-4.7 other changes mask the issue <mikpe@it.uu.se>]
+
+ PR ada/48835
+
+Index: b/src/gcc/tree-sra.c
+===================================================================
+--- a/src/gcc/tree-sra.c
++++ b/src/gcc/tree-sra.c
+@@ -927,9 +927,6 @@ scalarizable_type_p (tree type)
+ {
+ tree ft = TREE_TYPE (fld);
+
+- if (DECL_BIT_FIELD (fld))
+- return false;
+-
+ if (!is_gimple_reg_type (ft)
+ && !scalarizable_type_p (ft))
+ return false;