This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inappropriate warning for use of TRANSFER with arrays


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]