diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-12-23 21:55:12 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-12-23 21:55:12 +0000 |
commit | 058e32b336f75d77847ecdd938cb30ff493b9018 (patch) | |
tree | fe6597866e3145314348d9f88fb30b8bdf3054fb /gcc/testsuite | |
parent | 05f5e885564e730c6700bb57abfd75ce734b7e1b (diff) | |
download | gcc-058e32b336f75d77847ecdd938cb30ff493b9018.zip gcc-058e32b336f75d77847ecdd938cb30ff493b9018.tar.gz gcc-058e32b336f75d77847ecdd938cb30ff493b9018.tar.bz2 |
gimplify.c (gimplify_modify_expr_rhs): Use types_compatible_p.
* gimplify.c (gimplify_modify_expr_rhs): Use types_compatible_p.
* g++.dg/opt/temp1.C: Make memcpy actually copy bytes.
From-SVN: r92571
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/opt/temp1.C | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 518cf3d..e3e6ae7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-12-23 Mark Mitchell <mark@codesourcery.com> + + * g++.dg/opt/temp1.C: Make memcpy actually copy bytes. + 2004-12-23 Alexandre Oliva <aoliva@redhat.com> * gcc.dg/empty2.c: Add missing dg-warning. diff --git a/gcc/testsuite/g++.dg/opt/temp1.C b/gcc/testsuite/g++.dg/opt/temp1.C index 6454cdb..05dd269 100644 --- a/gcc/testsuite/g++.dg/opt/temp1.C +++ b/gcc/testsuite/g++.dg/opt/temp1.C @@ -15,6 +15,10 @@ int i; extern "C" void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n) { + char *d = (char *) dest; + const char *s = (const char *) src; + while (n--) + d[n] = s[n]; ++i; } |