[PATCH] aarch64: tests: Fix MTE tests compilation failure with -mcpu=native

Wilco Dijkstra Wilco.Dijkstra@arm.com
Tue Nov 3 18:09:30 GMT 2026


Hi Yury,
 
> When configured with CFLAGS="... -mcpu=native ..." MTE malloc tests
> would try to use '-march=armv8-a+memtag' which would result in an
> error if host's CPU does not have MTE.
>
> Fix it by using target attribute on the test functions that require
> memory tagging instructions.

Thanks, this works for me and seems simpler than overriding the -march for the
tests. OK.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>

Cheers,
Wilco


More information about the Libc-alpha mailing list