Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog36
-rw-r--r--config/mh-mingw3
-rw-r--r--config/mt-mips-elfoabi6
-rw-r--r--config/mt-sde20
-rw-r--r--config/no-executables.m48
-rw-r--r--config/tls.m422
6 files changed, 73 insertions, 22 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index cb0b61a9a..84db8b2f3 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,10 +1,44 @@
+2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * tls.m4 (GCC_CHECK_TLS): Rename have_tls to gcc_cv_have_tls.
+ (GCC_CHECK_CC_TLS): Rename have_cc_tls to gcc_cv_have_cc_tls.
+
+2007-10-03 Richard Sandiford <richard@codesourcery.com>
+
+ * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
+
+2007-10-03 Kazu Hirata <kazu@codesourcery.com>
+
+ Revert:
+ 2007-10-02 Richard Sandiford <richard@codesourcery.com>
+ * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
+
+2007-10-02 Richard Sandiford <richard@codesourcery.com>
+
+ * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
+
+2007-09-21 Richard Sandiford <rsandifo@nildram.co.uk>
+
+ * mt-sde (CFLAGS_FOR_TARGET): Replace -fno-optimize-sibling-calls
+ with -minterlink-mips16.
+ (CXXFLAGS_FOR_TARGET): Likewise.
+
+2007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
+
+ * mt-mips-elfoabi: New file.
+
2007-09-07 Richard Sandiford <richard@codesourcery.com>
* mt-sde (CFLAGS_FOR_TARGET): Add -mno-gpopt.
(CXXFLAGS_FOR_TARGET): Likewise.
+2007-09-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR target/33281
+ * mh-mingw: New host makefile fragment.
+
2007-08-18 Paul Brook <paul@codesourcery.com>
- Joseph Myers <joseph@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
* mt-gnu (CXXFLAGS_FOR_TARGET): Add
$(DEBUG_PREFIX_CFLAGS_FOR_TARGET).
diff --git a/config/mh-mingw b/config/mh-mingw
new file mode 100644
index 000000000..71864997e
--- /dev/null
+++ b/config/mh-mingw
@@ -0,0 +1,3 @@
+# Add -D__USE_MINGW_ACCESS to enable the built compiler to work on Windows
+# Vista (see PR33281 for details).
+BOOT_CFLAGS += -D__USE_MINGW_ACCESS
diff --git a/config/mt-mips-elfoabi b/config/mt-mips-elfoabi
new file mode 100644
index 000000000..49c8ecd32
--- /dev/null
+++ b/config/mt-mips-elfoabi
@@ -0,0 +1,6 @@
+# The *-elfoabi configurations are intended to be usable for both
+# MIPS16 and non-MIPS16 code, but the libraries are all non-MIPS16.
+# Add -minterlink-mips16 so that the libraries can be used with both
+# ISA modes.
+CFLAGS_FOR_TARGET = -minterlink-mips16
+CXXFLAGS_FOR_TARGET = -minterlink-mips16
diff --git a/config/mt-sde b/config/mt-sde
index fbdc081fe..775e50dd7 100644
--- a/config/mt-sde
+++ b/config/mt-sde
@@ -1,10 +1,10 @@
-# We default to building libraries optimised for size. We switch off
-# sibling-call optimization to permit interlinking of MIPS16 and
-# non-MIPS16 functions. The -mcode-xonly option allows MIPS16 libraries
-# to run on Harvard-style split I/D memories, so long as they have the
-# D-to-I redirect for PC-relative loads. -mno-gpopt has two purposes:
-# it allows libraries to be used in situations where $gp != our _gp,
-# and it allows them to be built with -G8 while retaining link compability
-# with -G0 and -G4.
-CFLAGS_FOR_TARGET = -Os -fno-optimize-sibling-calls -mcode-xonly -mno-gpopt
-CXXFLAGS_FOR_TARGET = -Os -fno-optimize-sibling-calls -mcode-xonly -mno-gpopt
+# We default to building libraries optimised for size. We use
+# -minterlink-mips16 so that the non-MIPS16 libraries can still be
+# linked against partly-MIPS16 code. The -mcode-xonly option allows
+# MIPS16 libraries to run on Harvard-style split I/D memories, so long
+# as they have the D-to-I redirect for PC-relative loads. -mno-gpopt
+# has two purposes: it allows libraries to be used in situations where
+# $gp != our _gp, and it allows them to be built with -G8 while
+# retaining link compability with -G0 and -G4.
+CFLAGS_FOR_TARGET = -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
+CXXFLAGS_FOR_TARGET = -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
diff --git a/config/no-executables.m4 b/config/no-executables.m4
index 54e5a0242..c4d0b70c3 100644
--- a/config/no-executables.m4
+++ b/config/no-executables.m4
@@ -59,3 +59,11 @@ fi)
m4_divert_pop()dnl
])# GCC_NO_EXECUTABLES
+
+# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK.
+AC_DEFUN([GCC_TRY_COMPILE_OR_LINK],
+[if test x$gcc_no_link = xyes; then
+ AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+else
+ AC_TRY_LINK([$1], [$2], [$3], [$4])
+fi])
diff --git a/config/tls.m4 b/config/tls.m4
index 69cf6d4f9..b6c4c4a6a 100644
--- a/config/tls.m4
+++ b/config/tls.m4
@@ -2,7 +2,7 @@ dnl Check whether the target supports TLS.
AC_DEFUN([GCC_CHECK_TLS], [
GCC_ENABLE(tls, yes, [], [Use thread-local storage])
AC_CACHE_CHECK([whether the target supports thread-local storage],
- have_tls, [
+ gcc_cv_have_tls, [
AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }],
[dnl If the test case passed with dynamic linking, try again with
dnl static linking, but only if static linking is supported (not
@@ -11,10 +11,10 @@ AC_DEFUN([GCC_CHECK_TLS], [
LDFLAGS="-static $LDFLAGS"
AC_LINK_IFELSE([int main() { return 0; }],
AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }],
- [have_tls=yes], [have_tls=no],[]),
- [have_tls=yes])
+ [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no],[]),
+ [gcc_cv_have_tls=yes])
LDFLAGS="$chktls_save_LDFLAGS"
- if test $have_tls = yes; then
+ if test $gcc_cv_have_tls = yes; then
dnl So far, the binutils and the compiler support TLS.
dnl Also check whether the libc supports TLS, i.e. whether a variable
dnl with __thread linkage has a different address in different threads.
@@ -58,18 +58,18 @@ AC_DEFUN([GCC_CHECK_TLS], [
if (pthread_join (thread, &thread_retval))
return 0;
return (a_in_other_thread == a_in_main_thread);])],
- [have_tls=yes], [have_tls=no], [])
+ [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no], [])
CFLAGS="$chktls_save_CFLAGS"
fi
fi],
- [have_tls=no],
+ [gcc_cv_have_tls=no],
[dnl This is the cross-compiling case. Assume libc supports TLS if the
dnl binutils and the compiler do.
AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }],
- [have_tls=yes], [have_tls=no])
+ [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no])
]
)])
- if test "$enable_tls $have_tls" = "yes yes"; then
+ if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
AC_DEFINE(HAVE_TLS, 1,
[Define to 1 if the target supports thread-local storage.])
fi])
@@ -78,11 +78,11 @@ dnl Check whether the target assembler supports TLS.
AC_DEFUN([GCC_CHECK_CC_TLS], [
GCC_ENABLE(tls, yes, [], [Use thread-local storage])
AC_CACHE_CHECK([whether the target asssembler upports thread-local storage],
- have_cc_tls, [
+ gcc_cv_have_cc_tls, [
AC_COMPILE_IFELSE([__thread int a; int b; int main() { return a = b; }],
- [have_cc_tls=yes], [have_cc_tls=no])]
+ [gcc_cv_have_cc_tls=yes], [gcc_cv_have_cc_tls=no])]
)])
- if test "$enable_tls $have_cc_tls" = "yes yes"; then
+ if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
AC_DEFINE(HAVE_CC_TLS, 1,
[Define to 1 if the target assembler supports thread-local storage.])
fi])