Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc Claim ifunc support on a number o...



details:   https://anonhg.NetBSD.org/src/rev/a660cba2a726
branches:  trunk
changeset: 455607:a660cba2a726
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Apr 07 14:26:26 2019 +0000

description:
Claim ifunc support on a number of architectures.
(Architecture list taken from src/tests/libexec/ld.elf_so/t_ifunc.c)

This is needed for attribute target_clones to work.

Non-functional until a mknative run. Tested by doing a regular GCC build.

diffstat:

 external/gpl3/gcc/dist/gcc/config.gcc |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 137df630ae76 -r a660cba2a726 external/gpl3/gcc/dist/gcc/config.gcc
--- a/external/gpl3/gcc/dist/gcc/config.gcc     Sun Apr 07 14:14:05 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config.gcc     Sun Apr 07 14:26:26 2019 +0000
@@ -802,6 +802,11 @@
   esac
   nbsd_tm_file="netbsd.h netbsd-stdint.h netbsd-elf.h"
   default_use_cxa_atexit=yes
+  case ${target} in
+    arm*-* | i[34567]86-* | powerpc*-* | sparc*-* | x86_64-*)
+      default_gnu_indirect_function=yes
+      ;;
+  esac
   ;;
 *-*-openbsd*)
   tmake_file="t-openbsd"



Home | Main Index | Thread Index | Old Index