From patchwork Thu Jan 13 18:16:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [wwwdocs] Update gcc-4.6/changes.html for Fortran's reallocate on assignment From: Tobias Burnus X-Patchwork-Id: 78797 Message-Id: <4D2F4182.2030501@net-b.de> To: gcc patches , Gerald Pfeifer , gfortran Date: Thu, 13 Jan 2011 19:16:34 +0100 The attached patch updates the Fortran 2008 section in the GCC 4.6 release notes. If you have suggestions or comments regarding this patch - or regarding other changes at http://gcc.gnu.org/gcc-4.6/changes.html please raise your voice. Otherwise, I will commit the patch as obvious. Tobias Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v retrieving revision 1.87 diff -u -r1.87 changes.html --- changes.html 11 Jan 2011 23:19:22 -0000 1.87 +++ changes.html 13 Jan 2011 18:13:20 -0000 @@ -327,6 +327,14 @@
  • In pointer assignments it is now possible to specify the lower bounds of the pointer and, for a rank-1 or a simply contiguous data-target, to remap the bounds.
  • +
  • Automatic (re)allocation for arrays: In intrinsic assignments to + allocatable variables the left-hand side will be automatically + allocated (if unallocated) or reallocated (if the shape is different). + To avoid the small performance penalty, you can use, for instance, + for arrays a(:) = ... instead of a = ... + – or disable the feature using -std=f95 or + -fno-realloc-lhs. Note: GCC does not yet support + (re)allocation on assignment for allocatable scalar variables.
  • Fortran 2008 support has been extended: