summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-19 12:11:07 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-19 12:11:07 +0000
commit8c3bf67d523f23dfe004d883f18a12f30296ced1 (patch)
treeb7d493bc684a1e21e02fa1b798431aca4e61c61c
parent88a00894a2c731bdd60d9e5bea743125a48fdc51 (diff)
downloadgcc-8c3bf67d523f23dfe004d883f18a12f30296ced1.tar.gz
gcc:
* configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. * configure: Regenerate. libstdc++-v3: * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. * configure: Regenerate. * src/complex_io.cc, src/istream-inst.cc, src/ostream-inst.cc: Condition some _GLIBCXX_LDBL_COMPAT calls on _GLIBCXX_USE_WCHAR_T. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123972 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure3
-rw-r--r--gcc/configure.ac3
-rw-r--r--libstdc++-v3/ChangeLog8
-rwxr-xr-xlibstdc++-v3/configure3
-rw-r--r--libstdc++-v3/configure.ac3
-rw-r--r--libstdc++-v3/src/complex_io.cc4
-rw-r--r--libstdc++-v3/src/istream-inst.cc4
-rw-r--r--libstdc++-v3/src/ostream-inst.cc4
9 files changed, 34 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 44443654bba..ddd6f17422e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-19 Joseph Myers <joseph@codesourcery.com>
+
+ * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
+ for long double compatibility.
+ * configure: Regenerate.
+
2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
PR rtl-optimization/29841
diff --git a/gcc/configure b/gcc/configure
index ed56355a52a..17e4fdc7663 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -16575,7 +16575,8 @@ fi
# Some glibc targets used DFmode long double, but with glibc 2.4
# and later they can use TFmode.
case "$target" in
- powerpc*-*-*gnu* | \
+ powerpc*-*-linux* | \
+ powerpc*-*-gnu* | \
sparc*-*-linux* | \
s390*-*-linux* | \
alpha*-*-linux*)
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 5f91210118f..9a7c563ec7b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3440,7 +3440,8 @@ fi
# Some glibc targets used DFmode long double, but with glibc 2.4
# and later they can use TFmode.
case "$target" in
- powerpc*-*-*gnu* | \
+ powerpc*-*-linux* | \
+ powerpc*-*-gnu* | \
sparc*-*-linux* | \
s390*-*-linux* | \
alpha*-*-linux*)
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 16a1336ee45..7d37f3fa287 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,11 @@
+2007-04-19 Joseph Myers <joseph@codesourcery.com>
+
+ * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
+ for long double compatibility.
+ * configure: Regenerate.
+ * src/complex_io.cc, src/istream-inst.cc, src/ostream-inst.cc:
+ Condition some _GLIBCXX_LDBL_COMPAT calls on _GLIBCXX_USE_WCHAR_T.
+
2007-04-14 Steve Ellcey <sje@cup.hp.com>
* configure.ac: Change how LIBSUPCXX_PICFLAGS is set.
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 22f3e1a7d59..6ca6b63d861 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -83894,7 +83894,8 @@ echo "$as_me: visibility supported: $enable_visibility" >&6;}
ac_ldbl_compat=no
case "$target" in
- powerpc*-*-*gnu* | \
+ powerpc*-*-linux* | \
+ powerpc*-*-gnu* | \
sparc*-*-linux* | \
s390*-*-linux* | \
alpha*-*-linux*)
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index e549e8a10f5..5299480615e 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -300,7 +300,8 @@ GLIBCXX_ENABLE_VISIBILITY([yes])
ac_ldbl_compat=no
case "$target" in
- powerpc*-*-*gnu* | \
+ powerpc*-*-linux* | \
+ powerpc*-*-gnu* | \
sparc*-*-linux* | \
s390*-*-linux* | \
alpha*-*-linux*)
diff --git a/libstdc++-v3/src/complex_io.cc b/libstdc++-v3/src/complex_io.cc
index e65a22d8457..dd117906675 100644
--- a/libstdc++-v3/src/complex_io.cc
+++ b/libstdc++-v3/src/complex_io.cc
@@ -101,11 +101,15 @@ _GLIBCXX_END_NAMESPACE
_GLIBCXX_LDBL_COMPAT (_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E,
_ZStlsIecSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E);
+#ifdef _GLIBCXX_USE_WCHAR_T
_GLIBCXX_LDBL_COMPAT (_ZStlsIdwSt11char_traitsIwEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E,
_ZStlsIewSt11char_traitsIwEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E);
+#endif
_GLIBCXX_LDBL_COMPAT (_ZStrsIdcSt11char_traitsIcEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E,
_ZStrsIecSt11char_traitsIcEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E);
+#ifdef _GLIBCXX_USE_WCHAR_T
_GLIBCXX_LDBL_COMPAT (_ZStrsIdwSt11char_traitsIwEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E,
_ZStrsIewSt11char_traitsIwEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E);
+#endif
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT
diff --git a/libstdc++-v3/src/istream-inst.cc b/libstdc++-v3/src/istream-inst.cc
index 7140ab27ba1..decdb9a70c4 100644
--- a/libstdc++-v3/src/istream-inst.cc
+++ b/libstdc++-v3/src/istream-inst.cc
@@ -103,11 +103,15 @@ _GLIBCXX_END_NAMESPACE
#define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
_GLIBCXX_LDBL_COMPAT (_ZNSirsERd, _ZNSirsERe);
+#ifdef _GLIBCXX_USE_WCHAR_T
_GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEErsERd,
_ZNSt13basic_istreamIwSt11char_traitsIwEErsERe);
+#endif
_GLIBCXX_LDBL_COMPAT (_ZNSi10_M_extractIdEERSiRT_,
_ZNSi10_M_extractIeEERSiRT_);
+#ifdef _GLIBCXX_USE_WCHAR_T
_GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIdEERS2_RT_,
_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIeEERS2_RT_);
+#endif
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT
diff --git a/libstdc++-v3/src/ostream-inst.cc b/libstdc++-v3/src/ostream-inst.cc
index 33c68151f6c..af24d6140b7 100644
--- a/libstdc++-v3/src/ostream-inst.cc
+++ b/libstdc++-v3/src/ostream-inst.cc
@@ -106,11 +106,15 @@ _GLIBCXX_END_NAMESPACE
#define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
_GLIBCXX_LDBL_COMPAT (_ZNSolsEd, _ZNSolsEe);
+#ifdef _GLIBCXX_USE_WCHAR_T
_GLIBCXX_LDBL_COMPAT (_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEd,
_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEe);
+#endif
_GLIBCXX_LDBL_COMPAT (_ZNSo9_M_insertIdEERSoT_,
_ZNSo9_M_insertIeEERSoT_);
+#ifdef _GLIBCXX_USE_WCHAR_T
_GLIBCXX_LDBL_COMPAT (_ZNSt13basic_ostreamIwSt11char_traitsIwEE9_M_insertIdEERS2_T_,
_ZNSt13basic_ostreamIwSt11char_traitsIwEE9_M_insertIeEERS2_T_);
+#endif
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT