[COMMITTED] tile: Enable PI_STATIC_AND_HIDDEN

Message ID 1429191789-21077-1-git-send-email-cmetcalf@ezchip.com
State Committed
Headers

Commit Message

Chris Metcalf April 16, 2015, 1:43 p.m. UTC
  This does make ld.so very slightly larger (0.3%) and doesn't seem to
actually improve performance; in fact, my limited testing suggested a
slight (0.1%) performance decrease (running fork/exec of a no-op program
in a loop), but I didn't do enough testing to establish statistical
significance.

However, Roland agrees that it makes sense to switch tile to using
this path, since it's the more standard way.
---
 ChangeLog                 | 5 +++++
 sysdeps/tile/configure    | 7 +++++++
 sysdeps/tile/configure.ac | 6 ++++++
 3 files changed, 18 insertions(+)
 create mode 100644 sysdeps/tile/configure
 create mode 100644 sysdeps/tile/configure.ac
  

Patch

diff --git a/ChangeLog b/ChangeLog
index 8f7c17603c9d..344c575192d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@ 
+2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
+
+	* sysdeps/tile/configure.ac: New file.
+	* sysdeps/tile/configure: Regenerated.
+
 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
diff --git a/sysdeps/tile/configure b/sysdeps/tile/configure
new file mode 100644
index 000000000000..534c7dbc5d22
--- /dev/null
+++ b/sysdeps/tile/configure
@@ -0,0 +1,7 @@ 
+# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
+ # Local configure fragment for sysdeps/tile.
+
+# We can always access static and hidden symbols in a position independent way.
+$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
+
+# work around problem with autoconf and empty lines at the end of files
diff --git a/sysdeps/tile/configure.ac b/sysdeps/tile/configure.ac
new file mode 100644
index 000000000000..6e246a3bc927
--- /dev/null
+++ b/sysdeps/tile/configure.ac
@@ -0,0 +1,6 @@ 
+GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
+# Local configure fragment for sysdeps/tile.
+
+# We can always access static and hidden symbols in a position independent way.
+AC_DEFINE(PI_STATIC_AND_HIDDEN)
+# work around problem with autoconf and empty lines at the end of files