This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, testsuite] Fix PASS->UNSUPPORTED on g++.dg/tls/static-1.C
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Adam Nemet <anemet at caviumnetworks dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 May 2007 11:40:06 -0700
- Subject: Re: [PATCH, testsuite] Fix PASS->UNSUPPORTED on g++.dg/tls/static-1.C
- References: <18005.55961.997691.174870@localhost.localdomain>
On Thu, May 24, 2007 at 11:34:01AM -0700, Adam Nemet wrote:
> The patch in http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00763.html
> introduced the above transition.
>
> The problem is that ${tool}_target_compile compiles not only the
> SOURCE file that is passed to it but also files mentioned in
> dg-additional-source. It finds these and the files in
> dg-additional-file relative to SOURCE. When running feature tests in
> target-supports.exp SOURCE is generated and resides in the testsuite
> directory so additional files are not found.
>
> My patch derives a new function ${tool}_target_compile_file that
> clears the value of dg-additional-* temporarily before calling
> ${tool}_target_compile.
>
> Tested on x86_64-unknown-linux-gnu and mipsisa64-elf.
>
> OK for mainline and release branches?
>
Does your patch fix
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32064
If not, can you fix it? Basically, we need to make sure that
all proper just built target libraries are searched/used when
they are tested.
Thanks.
H.J.