[Patch,Fortran] PR 45756 Fix muliple-decl issue with PARAMETER
Tobias Burnus
burnus@net-b.de
Tue Sep 28 15:52:00 GMT 2010
For PARAMETERs in MODULEs which are of derived type or array-valued
gfortran creates a static variable. This patch ensures that no extra
declaration is generated for use associated parameters.
If one runs the testcase (see PR) without patch, the result of
-fdump-tree-original-uid is:
iD.1554 = paraD.1556[0];
jD.1559 = paraD.1561[0];
with the patch, the result is:
iD.1513 = paraD.1510[0];
jD.1516 = paraD.1510[0];
Build on x86-64-linux and currently regtesting; if it succeeds:
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gsym-parameter.diff
Type: text/x-patch
Size: 1629 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100928/d7b66220/attachment.bin>
More information about the Gcc-patches
mailing list