diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index adb0fa381f7..4116d05ad80 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2000-07-22 Gabriel Dos Reis + + Line up with libstdc++-v2 version of valarray. + * bits/valarray_array.h (__valarray_product): Make inline. + * src/valarray-inst.cc (__valarray_product): Remove explicit + instantiation. + 2000-07-21 H.J. Lu (hjl@gnu.org) * acinclude.m4: Include for glibc testing. diff --git a/libstdc++-v3/bits/valarray_array.h b/libstdc++-v3/bits/valarray_array.h index 5a792d29c82..4eb2eb868dd 100644 --- a/libstdc++-v3/bits/valarray_array.h +++ b/libstdc++-v3/bits/valarray_array.h @@ -285,7 +285,7 @@ namespace std // Compute the product of all elements in range [__f, __l) template - _Tp + inline _Tp __valarray_product(const _Tp* __restrict__ __f, const _Tp* __restrict__ __l) { diff --git a/libstdc++-v3/src/valarray-inst.cc b/libstdc++-v3/src/valarray-inst.cc index 94d1188e523..05874848c02 100644 --- a/libstdc++-v3/src/valarray-inst.cc +++ b/libstdc++-v3/src/valarray-inst.cc @@ -9,9 +9,6 @@ namespace std template void __valarray_copy(const size_t* __restrict__, size_t, size_t* __restrict__); - template size_t - __valarray_product(const size_t* __restrict__, const size_t* __restrict__); - template valarray::valarray(size_t); template valarray::valarray(const valarray&); template valarray::~valarray();