The test case for PR 40628 has: ! { dg-final { scan-tree-dump-times "memmove" 2 "original" } }
However, the original dump has: __builtin_memmove ((void *) &a, (void *) pstr.0, 3); __builtin_memmove ((void *) &a, (void *) pstr.0, (integer(kind=8)) D.1558); __builtin_memmove ((void *) &c, (void *) pstr.2, 4); __builtin_memmove ((void *) &c, (void *) pstr.2, (integer(kind=8)) D.1566); For some reasons, regtestings FAILs for me but not for Daniel K (who never the less has 4 memmoves) - also gcc-testresults shows no failures. Please check whether 4 or 2 memove are correct. -- Summary: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309