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/libstdc++-v3/include Rename __is_sign...
details: https://anonhg.NetBSD.org/src/rev/25342a777725
branches: trunk
changeset: 785655:25342a777725
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Mar 24 12:15:50 2013 +0000
description:
Rename __is_signed to __is_signed_val to avoid conflict with a type
trait in Clang.
diffstat:
external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets.tcc | 6 +++---
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_algobase.h | 4 ++--
external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (83 lines):
diff -r 2c1b0b65af0e -r 25342a777725 external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets.tcc
--- a/external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets.tcc Sun Mar 24 11:07:07 2013 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets.tcc Sun Mar 24 12:15:50 2013 +0000
@@ -464,7 +464,7 @@
bool __testfail = false;
bool __testoverflow = false;
const __unsigned_type __max =
- (__negative && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed)
+ (__negative && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed_val)
? -__gnu_cxx::__numeric_traits<_ValueT>::__min
: __gnu_cxx::__numeric_traits<_ValueT>::__max;
const __unsigned_type __smax = __max / __base;
@@ -568,7 +568,7 @@
else if (__testoverflow)
{
if (__negative
- && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed)
+ && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed_val)
__v = __gnu_cxx::__numeric_traits<_ValueT>::__min;
else
__v = __gnu_cxx::__numeric_traits<_ValueT>::__max;
@@ -891,7 +891,7 @@
if (__v >= 0)
{
if (bool(__flags & ios_base::showpos)
- && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed)
+ && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed_val)
*--__cs = __lit[__num_base::_S_oplus], ++__len;
}
else
diff -r 2c1b0b65af0e -r 25342a777725 external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_algobase.h
--- a/external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_algobase.h Sun Mar 24 11:07:07 2013 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_algobase.h Sun Mar 24 12:15:50 2013 +0000
@@ -929,8 +929,8 @@
typedef typename iterator_traits<_II2>::value_type _ValueType2;
const bool __simple =
(__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value
- && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed
- && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed
+ && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed_val
+ && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed_val
&& __is_pointer<_II1>::__value
&& __is_pointer<_II2>::__value);
diff -r 2c1b0b65af0e -r 25342a777725 external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h
--- a/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h Sun Mar 24 11:07:07 2013 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h Sun Mar 24 12:15:50 2013 +0000
@@ -58,7 +58,7 @@
// NB: these two also available in std::numeric_limits as compile
// time constants, but <limits> is big and we avoid including it.
- static const bool __is_signed = __glibcxx_signed(_Value);
+ static const bool __is_signed_val = __glibcxx_signed(_Value);
static const int __digits = __glibcxx_digits(_Value);
};
@@ -69,7 +69,7 @@
const _Value __numeric_traits_integer<_Value>::__max;
template<typename _Value>
- const bool __numeric_traits_integer<_Value>::__is_signed;
+ const bool __numeric_traits_integer<_Value>::__is_signed_val;
template<typename _Value>
const int __numeric_traits_integer<_Value>::__digits;
@@ -101,7 +101,7 @@
static const int __max_digits10 = __glibcxx_max_digits10(_Value);
// See above comment...
- static const bool __is_signed = true;
+ static const bool __is_signed_val = true;
static const int __digits10 = __glibcxx_digits10(_Value);
static const int __max_exponent10 = __glibcxx_max_exponent10(_Value);
};
@@ -110,7 +110,7 @@
const int __numeric_traits_floating<_Value>::__max_digits10;
template<typename _Value>
- const bool __numeric_traits_floating<_Value>::__is_signed;
+ const bool __numeric_traits_floating<_Value>::__is_signed_val;
template<typename _Value>
const int __numeric_traits_floating<_Value>::__digits10;
Home |
Main Index |
Thread Index |
Old Index