[PATCH v6 3/5] aarch64: Add SFrame support for aarch64 architecture

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Jul 2 18:36:57 GMT 2025



On 02/07/25 15:18, Wilco Dijkstra wrote:
> Hi Adhemerval,
> 
>> I think it is fine for assembly routines, as we do on multiple implementation
>> for aarch64, but I think we should avoid adding UB on C code even though
>> the architecture does allow it.  A packet or memcpy wrapper generates the
>> same code and plays better with tools like UBSAN (if we eventually add
>> support for it).
> 
> Where you see UB exactly? It's all aligned.

Isn't the indirection 'pc[0]' from the alias 'unsigned int *pc = (unsigned int *) frame->pc;'
strictly UB; although in practice 'pc' does point to aligned value? 


More information about the Libc-alpha mailing list