diff options
author | bergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-20 20:30:24 +0000 |
---|---|---|
committer | bergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-20 20:30:24 +0000 |
commit | 62752e7165b6bee041d5753b8b1241a512c6263e (patch) | |
tree | 5eeec1f45b34f7f29a1f977751983a8316485957 /gcc/configure | |
parent | e4b5ff1b26b82cdc03435062c615f51084e9a804 (diff) |
gcc/
* config/rs6000/ppc-auxv.h: New file.
* config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
(cpu_is): Likewise.
(cpu_supports): Likewise.
* config/rs6000/rs6000.c: include "ppc-auxv.h".
(cpu_is_info): New variable.
(cpu_supports_info): Likewise.
(tcb_verification_symbol): Likewise.
(cpu_builtin_p): Likewise.
(cpu_expand_builtin): New function.
(rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
(rs6000_init_builtins): Likewise.
(rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
* config/rs6000/rs6000.h (TLS_REGNUM): New define.
* configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
* configure: Regenerate.
* config.in: Likewise.
* doc/extend.texi (PowerPC Built-in Functions): Document
__builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
gcc/testsuite/
* gcc.target/powerpc/cpu-builtin-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 7db75526dd2..42e97a8a8af 100755 --- a/gcc/configure +++ b/gcc/configure @@ -28539,6 +28539,24 @@ $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h fi +# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP +# values in the TCB. Currently, only GLIBC 2.23 and later support this. +gcc_cv_libc_provides_hwcap_in_tcb=no +case "$target" in + powerpc*-*-linux*) + +if test $glibc_version_major -gt 2 \ + || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then : + gcc_cv_libc_provides_hwcap_in_tcb=yes +fi + ;; +esac +if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then + +$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; } gcc_cv_target_dl_iterate_phdr=unknown |