forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc: apply proposed upstream patch for seh_cfa_offset ICE regression
Patch taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115038#c4 Fixes msys2#20879 Fixes msys2#20864 Fixes msys2#20861
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/gcc/fold-mem-offsets.cc b/gcc/fold-mem-offsets.cc | ||
index 2e15b05529e..84b9623058b 100644 | ||
--- a/gcc/fold-mem-offsets.cc | ||
+++ b/gcc/fold-mem-offsets.cc | ||
@@ -491,7 +491,7 @@ fold_offsets (rtx_insn *insn, rtx reg, bool analyze, bitmap foldable_insns) | ||
{ | ||
rtx_insn *def = get_single_def_in_bb (insn, reg); | ||
|
||
- if (!def || GET_CODE (PATTERN (def)) != SET) | ||
+ if (!def || RTX_FRAME_RELATED_P (def) || GET_CODE (PATTERN (def)) != SET) | ||
return 0; | ||
|
||
rtx dest = SET_DEST (PATTERN (def)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters