3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5
Jeffrey Oldham
oldham@codesourcery.com
Mon Jun 4 10:00:00 GMT 2001
On Mon, Jun 04, 2001 at 09:39:45AM -0700, Benjamin Kosnik wrote:
>
> I don't care about the testsuite bits, really. Please revert the
> char_traits.h bit.
>
> Thanks,
> benjamin
>
> > Do you want the entire patch or just the char_traits.h section reverted?
OK, the char_traits.h section of the patch is reverted.
2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
* include/bits/char_traits.h (move): Reverse qualification of
memmove with std::.
(copy): Reverse qualification of memcpy with std::.
Untested
Requested by Benjamin Kosnik (bkoz@redhat.com)
Committed to gcc 3.1
****************
What is the next step in solving the problem?
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: include/bits/char_traits.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/char_traits.h,v
retrieving revision 1.7
diff -c -p -r1.7 char_traits.h
*** char_traits.h 2001/06/04 15:46:01 1.7
--- char_traits.h 2001/06/04 16:54:53
*************** namespace std
*** 93,103 ****
static char_type*
move(char_type* __s1, const char_type* __s2, size_t __n)
! { return (char_type*) std::memmove(__s1, __s2, __n * sizeof(char_type)); }
static char_type*
copy(char_type* __s1, const char_type* __s2, size_t __n)
! { return (char_type*) std::memcpy(__s1, __s2, __n * sizeof(char_type)); }
static char_type*
assign(char_type* __s, size_t __n, char_type __a)
--- 93,103 ----
static char_type*
move(char_type* __s1, const char_type* __s2, size_t __n)
! { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
static char_type*
copy(char_type* __s1, const char_type* __s2, size_t __n)
! { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
static char_type*
assign(char_type* __s, size_t __n, char_type __a)
More information about the Libstdc++
mailing list