On Wed, 23 Nov 2016, Michael Meissner wrote:

> Since some of the embedded hosts use powerpc-*-linux<whatever>, I only set the
> default if the target is a 64-bit PowerPC system.  I tested the compiler
> manually to verify that ifunc support was enabled, and it was.  I did a
> boostrap build/check cycle on a little endian power8 system and there were
> regressions.  Can I install the patch on the trunk?
> 
> Note, the documentation for the --enable-gnu-indirect-option does not list
> which systems current enable the option, so I did not modify the
> documentation.

I don't think this should have anything to do with embedded/server, or 
about whether it's configured for 32-bit or 64-bit default.  
powerpc-linux-gnu --enable-targets=all -m64 should behave the same as 
powerpc64-linux-gnu.

We have information about the target glibc version in configure.ac, 
determined from the --with-glibc-version option (in the case of 
bootstrapping a cross toolchain) or from target headers when available 
(native and non-bootstrap cross builds).  That's the right information to 
test (based on whatever version of glibc got the required support for the 
given architecture).  (The relevant configure.ac code is after config.gcc 
is processed.  Maybe have a config.gcc setting to say "enable if glibc 
>= this version" and then rearrange the configure.ac code so glibc 
versions are processed before enable-gnu-indirect-function?)

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to