This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Turn on gnu-indirect-function by default on PowerPC servers
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>, David Edelsohn <dje dot gcc at gmail dot com>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Date: Thu, 24 Nov 2016 01:07:04 +0000
- Subject: Re: [PATCH] Turn on gnu-indirect-function by default on PowerPC servers
- Authentication-results: sourceware.org; auth=none
- References: <20161124005110.GA7087@ibm-tiger.the-meissners.org>
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
joseph@codesourcery.com