Re: [PATCH v2][AArch64] PR92424: Fix -fpatchable-function-entry=N,M with BTI

2020-01-29 Thread Szabolcs Nagy
On 21/01/2020 15:34, Richard Sandiford wrote: > Szabolcs Nagy writes: >> gcc/ChangeLog: >> >> 2020-01-21 Szabolcs Nagy >> >> * config/aarch64/aarch64.c (aarch64_declare_function_name): Set >> cfun->machine->label_is_assembled. >> (aarch64_print_patchable_function_entry): New. >>

Re: [PATCH v2][AArch64] PR92424: Fix -fpatchable-function-entry=N,M with BTI

2020-01-21 Thread Richard Sandiford
Szabolcs Nagy writes: > v2: > - emit bti based on feedback from Richard Sandiford > (dont copy varasm logic). > - add testcases. > - kept bti outside the patch area if possible, i.e. option (b) > in earlier discussion. > > This fix does not update the documentation of the generic > option, I t

[PATCH v2][AArch64] PR92424: Fix -fpatchable-function-entry=N,M with BTI

2020-01-21 Thread Szabolcs Nagy
v2: - emit bti based on feedback from Richard Sandiford (dont copy varasm logic). - add testcases. - kept bti outside the patch area if possible, i.e. option (b) in earlier discussion. This fix does not update the documentation of the generic option, I think some text would be useful there abo