Patchwork [wwwdocs] Update gcc-4.6/changes.html for Fortran's reallocate on assignment

login
register
mail settings
Submitter Tobias Burnus
Date Jan. 13, 2011, 6:16 p.m.
Message ID <4D2F4182.2030501@net-b.de>
Download mbox | patch
Permalink /patch/78797/
State New
Headers show

Comments

Tobias Burnus - Jan. 13, 2011, 6:16 p.m.
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
Paul Richard Thomas - Jan. 14, 2011, 5:19 a.m.
Tobias,

This is OK.  Thanks!

I am working on the scalar version with what little time that I have at present.

Cheers

Paul

On Thu, Jan 13, 2011 at 7:16 PM, Tobias Burnus <burnus@net-b.de> wrote:
> 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
>

Patch

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 @@ 
 	<li>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.</li>
+	<li>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 <code>a(:) = ...</code> instead of <code>a = ...</code>
+	&ndash; or disable the feature using <code>-std=f95</code> or
+	<code>-fno-realloc-lhs</code>. Note: GCC does not yet support
+	(re)allocation on assignment for allocatable <em>scalar</em> variables.
       </ul>
     </li>
     <li>Fortran 2008 support has been extended: