Re: [PATCH 2/2] asan: Align .LASANPC on function boundary

2023-12-07 Thread Jakub Jelinek
On Thu, Dec 07, 2023 at 01:08:27PM +0100, Ilya Leoshkevich wrote: > GCC can emit code between the function label and the .LASANPC label, > making the latter unaligned. Some architectures cannot load unaligned > labels directly and require literal pool entries, which is inefficient. > > Move the i

[PATCH 2/2] asan: Align .LASANPC on function boundary

2023-12-07 Thread Ilya Leoshkevich
GCC can emit code between the function label and the .LASANPC label, making the latter unaligned. Some architectures cannot load unaligned labels directly and require literal pool entries, which is inefficient. Move the invocation of asan_function_start to ASM_OUTPUT_FUNCTION_LABEL, which guarant