Update gcc11-pr116034.patch.

Resolves: RHEL-50054
This commit is contained in:
Marek Polacek 2024-07-23 14:30:08 -04:00
parent 20ba5a475c
commit 73d40d83f7

View File

@ -14,7 +14,7 @@ Date: Tue Jul 23 10:50:29 2024 +0200
Andrew Pinski <quic_apinski@quicinc.com>
PR tree-optimization/116034
* tree-ssa.cc (maybe_rewrite_mem_ref_base): Only use IMAGPART_EXPR
* tree-ssa.c (maybe_rewrite_mem_ref_base): Only use IMAGPART_EXPR
if MEM_REF offset is equal to element type size.
* gcc.dg/pr116034.c: New test.
@ -49,10 +49,8 @@ index 00000000000..9a31de03424
+ != (__BYTE_ORDER__ != __ORDER_BIG_ENDIAN__ ? 1 : 0x100)))
+ __builtin_abort ();
+}
diff --git a/gcc/tree-ssa.cc b/gcc/tree-ssa.cc
index 27ab9cfac82..f4fa4e98c5d 100644
--- a/gcc/tree-ssa.cc
+++ b/gcc/tree-ssa.cc
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -1506,7 +1506,10 @@ maybe_rewrite_mem_ref_base (tree *tp, bitmap suitable_for_renaming)
}
else if (TREE_CODE (TREE_TYPE (sym)) == COMPLEX_TYPE