This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Inappropriate warning for use of TRANSFER with arrays
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: William Clodius <wclodius at los-alamos dot net>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 21 Apr 2013 10:17:14 +0200
- Subject: Re: Inappropriate warning for use of TRANSFER with arrays
- References: <D6BAE2D3-62F6-4E6A-ACFF-F2834B161304 at los-alamos dot net>
Dear William,
> I believe these warnings are in appropriate. The source sizes given above are for single elements, but the transfers all involve multiple source elements so the effective source size in all three cases is the same as the results.
yes, I think you're right. These warnings are bogus. Can you open a PR
for it in bugzilla? (http://gcc.gnu.org/bugzilla/)
> I hope gfortran is not transferring single elements when the specified source is an array.
Judging from the output of -fdump-tree-original, the memcpy uses the
right size for all of your TRANSFERs (namely 8 byte), so the run-time
behavior should be correct.
Thanks for reporting,
Janus