@@ -93,6 +93,18 @@ nvptx_option_override (void)
init_machine_status = nvptx_init_machine_status;
/* Gives us a predictable order, which we need especially for variables. */
flag_toplevel_reorder = 1;
+ /* If enabled, global cold/hot labels will be emitted, which our mkoffload
+ currently doesn't cope with. Also, it's not clear whether such
+ partitioning actually has any positive effect on the virtual ISA that PTX
+ is. */
+ if (flag_reorder_blocks_and_partition)
+ {
+ inform (input_location,
+ "-freorder-blocks-and-partition not supported on this "
+ "architecture");
+ flag_reorder_blocks_and_partition = 0;
+ flag_reorder_blocks = 1;
+ }
/* Assumes that it will see only hard registers. */
flag_var_tracking = 0;
write_symbols = NO_DEBUG;