[Patch, gfortran] PR22304, 17917, 16511, 18870 and 23270 - modules, equivalences and commons - final(?) version
Paul Thomas
paulthomas2@wanadoo.fr
Tue Sep 6 17:33:00 GMT 2005
Please find attached a version of the patch, submitted on 0822, that
answers Tobi and Steven's comments and corrections.
Going through these:
(i) The ChangeLog entries have been combined(Tobi).
(ii) The gfc_common_head *common_head, added to gfc_symbol, is now
declared as such, rather than void *(Tobi).
(iii) The addition of serial numbers, in gfc_get_common, has reverted to
the original; ie. there is a single series, rather than one for each
namespace(Tobi).
(iv) The error messages for equivalenced common blocks now emit the
common block names(Tobi).
(v) equiv_flag has been dropped from match.c by using a goto, on the
detection of an equivalence(Tobi).
(vi) The braces around the string constant at module.c:3320 have been
dropped(Tobi).
(vii) The demangling of the common block names in write_common is
dropped and sym->n.common->name used instead(me).
(viii) The issue of the scope of equivalences, raised by Steven and
discussed on the list, has been dealt with by renaming
gfc_match_varaible, to a static match_variable, which has a third
argument host_flag. If this is 0, only the local scope is matched, if
it is 1 the parent namespaces are searched too. The two interface
functions gfc_match_variable and gfc_match_equiv_variable call match
variable with host_flag 1 and 0, respectively(Steven).
This has been bubblestrapped and regtested on Athlon1700/FC3.
OK for mainline and 4.0?
Best regards
Paul T
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fort_changelog.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050906/81a0f3bb/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_changelog.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050906/81a0f3bb/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: big_0609.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050906/81a0f3bb/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fort_0609.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050906/81a0f3bb/attachment-0001.ksh>
More information about the Gcc-patches
mailing list