config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by default on PowerPC linux...
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Sat, 3 Dec 2016 00:41:44 +0000 (00:41 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Sat, 3 Dec 2016 00:41:44 +0000 (00:41 +0000)
2016-12-02  Michael Meissner  <meissner@linux.vnet.ibm.com>

* config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
default on PowerPC linux systems.

From-SVN: r243215

gcc/ChangeLog
gcc/config.gcc

index 0d57fe3..d651cbd 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
+       default on PowerPC linux systems.
+
 2016-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
index 1fa34ac..189073e 100644 (file)
@@ -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"