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

Gary Benson gbenson@redhat.com
Tue Oct 6 14:13:13 GMT 2020


Pedro Alves wrote:
> 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, I've pushed this one now too.

Cheers,
Gary

-- 
Gary Benson - he / him / his
Principal Software Engineer, Red Hat



More information about the Gdb-patches mailing list