This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -fpic support detection in testsuite


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]