This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fpic support detection in testsuite
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Jan Beulich <jbeulich at novell dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 19 Feb 2008 12:34:21 -0800
- Subject: Re: -fpic support detection in testsuite
- References: <47BB1A33.76E4.0078.0@novell.com>
- Reply-to: janis187 at us dot ibm dot com
On Tue, 2008-02-19 at 17:04 +0000, Jan Beulich wrote:
> gcc/testsuite/lib/target-supports.exp checks whether the compiler spits
> out any messages when using -fpic/-fPIC; this doesn't cover the case
> where the compiler happily processes everything, but the linker cannot
> deal with the result (in the given case, because the specific gas (x86) in
> use accepts @ as a normal symbol character, and hence the usual
> <symbol>@<operator> syntax doesn't yield the expected result; note
> that the target doesn't really need PIC code, not does it support TLS,
> thus all the constructs are really meaningless).
>
> Should the testsuite not instead do a test whether all involved tools
> are able to handle -fPIC and its results)? Or should the target simply
> disallow -fPIC (and if so, how is that supposed to be done)?
Procedure check_effective_target_fpic invokes check_no_compiler_messages
with "object" but you want it to use "executable" instead. The support
is there, try changing the call and see if it works for you.
Janis