This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: 3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Mon, 4 Jun 2001 10:00:20 -0700
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, Jeffrey Oldham <oldham at codesourcery dot com>
- Organization: CodeSourcery LLC
- References: <20010604093644.A19611@codesourcery.com> <Pine.SOL.3.91.1010604093912.6126C@taarna.cygnus.com>
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)