On MIPS, .set noreorder/reorder needs to emitted around
the nop. The template for the nop instruction uses %(/%) to
do that. But default_print_patchable_function_entry uses
fprintf rather than output_asm_insn to output the instruction.
This fixes the problem by using output_asm_insn to emit the nop
instruction.
ChangeLog:
PR middle-end/93242
* targhooks.c (default_print_patchable_function_entry): Use
output_asm_insn to emit the nop instruction.
+2020-01-20 Andrew Pinski <apinski@marvell.com>
+
+ PR middle-end/93242
+ * targhooks.c (default_print_patchable_function_entry): Use
+ output_asm_insn to emit the nop instruction.
+
2020-01-20 Fangrui Song <maskray@google.com>
PR middle-end/93194
unsigned i;
for (i = 0; i < patch_area_size; ++i)
- fprintf (file, "\t%s\n", nop_templ);
+ output_asm_insn (nop_templ, NULL);
}
bool