diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2016-01-20 14:30:24 -0600 |
---|---|---|
committer | Peter Bergner <bergner@gcc.gnu.org> | 2016-01-20 14:30:24 -0600 |
commit | 26a2e6aed46f0690aee229788887908b7116f515 (patch) | |
tree | 5eeec1f45b34f7f29a1f977751983a8316485957 /gcc/configure.ac | |
parent | 11c7bfe6737c940cc35c87ff35e4cd18897f20d8 (diff) | |
download | gcc-26a2e6aed46f0690aee229788887908b7116f515.zip gcc-26a2e6aed46f0690aee229788887908b7116f515.tar.gz gcc-26a2e6aed46f0690aee229788887908b7116f515.tar.bz2 |
ppc-auxv.h: New file.
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.
From-SVN: r232634
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 8d3a869..bf38dfe 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -5544,6 +5544,19 @@ if test x$gcc_cv_target_ldbl128 = xyes; then [Define if TFmode long double should be the default]) 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*) + GCC_GLIBC_VERSION_GTE_IFELSE([2], [23], [gcc_cv_libc_provides_hwcap_in_tcb=yes], ) + ;; +esac +if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then + AC_DEFINE(TARGET_LIBC_PROVIDES_HWCAP_IN_TCB, 1, + [Define if your target C Library provides the AT_HWCAP value in the TCB]) +fi + AC_MSG_CHECKING(dl_iterate_phdr in target C library) gcc_cv_target_dl_iterate_phdr=unknown case "$target" in |