gcc12/gcc11-amdgcn-disable-hot-cold-partitioning.patch
OBS User rguenther 4c9c8313da New gcc12 package submission.
Rev devel:gcc/1 Md5 ae463db7c2b11a8484bb26da6735cffb 2022-01-13 12:39:29 rguenther 946019
2022-01-13 12:39:29 +00:00

23 lines
640 B
Diff

diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c
index 6d02a4a02..d77f66182 100644
--- a/gcc/config/gcn/gcn.c
+++ b/gcc/config/gcn/gcn.c
@@ -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