[Bug fortran/56867] Missing temporary with string array assignment
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 8 20:24:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56867
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-04-08 20:23:59 UTC ---
I stumbled across this while looking at PR 30398,
when I wanted to add some dependency checking to
make call memcpy instead of memmove if there was
no dependency.
Look for an optimization, find a bug...
I have been working on the idea to add an argument to
gfc_trans_scalar_assign (which does not know about
the gfc_expr*s any more) which indicates if there coul
be a dependency, which could be checked via gfc_check_dependency
and then passed to gfc_trans_string_copy.
This kind of analysis could also be used in PR 56594
to create a temporary.
More information about the Gcc-bugs
mailing list