[PATCH] gdb/testsuite: Add relative versus absolute LD_LIBRARY_PATH test

Kevin Buettner kevinb@redhat.com
Tue Sep 26 00:16:23 GMT 2023


On Mon, 25 Sep 2023 10:57:10 +0100
Lancelot SIX <lsix@lancelotsix.com> wrote:

> > +extern __thread int var;  
> 
> I think you could replace __thread (a GCC___extension) with thread_local
> which was introduced in C11 (available in the <threads.h> header)[1].
> 
> This could require adding -std=c11 to additional_flags in the .exp file
> (not sure which C standard is picked by default by different versions of
> GCC).

I've made this change for v2.  In my testing on Fedora 38, it didn't seem
that additonal_flags=-std=c11 was required for gcc, but I made this change
anyway.  (I'd guess that it might be necessary for some older version of
gcc.)  Also, I found that testing with CC_FOR_TARGET=clang didn't work
(but not due to adding -std=c11), so I fixed that problem too.

Thanks for this suggestion!

Kevin



More information about the Gdb-patches mailing list