From 25207f51c498deae4bf57a7ea87fe429cefee711 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Sat, 3 Dec 2016 00:41:44 +0000 Subject: [PATCH] config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by default on PowerPC linux systems. 2016-12-02 Michael Meissner * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by default on PowerPC linux systems. From-SVN: r243215 --- gcc/ChangeLog | 5 +++++ gcc/config.gcc | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d57fe31170..d651cbdbe1d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-02 Michael Meissner + + * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by + default on PowerPC linux systems. + 2016-12-02 Segher Boessenkool * simplify-rtx.c (simplify_truncation): M2 is not mode, it is diff --git a/gcc/config.gcc b/gcc/config.gcc index 1fa34ac086a..189073ecbb0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2443,6 +2443,14 @@ powerpc*-*-linux*) if test x${enable_secureplt} = xyes; then tm_file="rs6000/secureplt.h ${tm_file}" fi + # Assume modern glibc if not targeting Android nor uclibc. + case ${target} in + *-*-*android*|*-*-*uclibc*|*-*-*musl*) + ;; + *) + default_gnu_indirect_function=yes + ;; + esac ;; powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils) tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" -- 2.30.2