------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-03-31 12:29 ------- Created an attachment (id=13307) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13307&action=view) Patch that fixes the PR and a few related issues
This patch fixes both the simplification routine and the code generation. It removes the need for the libgfortran string_repeat function by emitting inline calls to memmove(), which probably allows greater optimization. I added checking on too large values of the NCOPIES argument: NCOPIES has to be such that the destination length fits in the character length integer kind (which is for now hardcoded as kind=4, but I hope we can change that someday). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31304