gcc12/gcc11-amdgcn-disable-hot-cold-partitioning.patch
Richard Biener e9abb54d8a Accepting request 948362 from devel:gcc:next
- Bump to add6bb52e34f6036ace9f67ad8ad5b990adbc34a.
- Fix filenames in the following patches:
  gcc11-amdgcn-disable-hot-cold-partitioning.patch,
  gcc41-ppc32-retaddr.patch.

It fixes PR104182.

OBS-URL: https://build.opensuse.org/request/show/948362
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc12?expand=0&rev=11
2022-01-24 11:18:46 +00:00

23 lines
644 B
Diff

diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index 6d02a4a02..d77f66182 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -6413,9 +6413,17 @@ gcn_dwarf_register_span (rtx rtl)
return p;
}
+static void
+gcn_override_options_after_change (void)
+{
+ flag_reorder_blocks_and_partition = 0;
+}
+
/* }}} */
/* {{{ TARGET hook overrides. */
+#undef TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE
+#define TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE gcn_override_options_after_change
#undef TARGET_ADDR_SPACE_ADDRESS_MODE
#define TARGET_ADDR_SPACE_ADDRESS_MODE gcn_addr_space_address_mode
#undef TARGET_ADDR_SPACE_DEBUG