[PATCH] Fix gdb.base/list.exp with Clang

Pedro Alves pedro@palves.net
Tue Oct 6 11:43:23 GMT 2020


On 10/5/20 2:44 PM, Gary Benson via Gdb-patches wrote:
> Hi all,
> 
> Two subtests of gdb.base/list.exp failed when built with Clang
> because the unused function "unused" was optimized out.  This
> commit adds __attribute__ ((used)) to both definitions.
> 
> Checked on Fedora 32 x86_64, with GCC and Clang.  Ok to commit?

OK.

Thanks,
Pedro Alves


More information about the Gdb-patches mailing list