[patch, fortran] PR43851 match_stopcode cleanup
Jerry DeLisle
jvdelisle@verizon.net
Sat May 22 21:59:00 GMT 2010
Attached patch is self explanatory and adds some checks and does some clean up.
I have not found an easy way to check for parameters. One thing we could do is
put all the new stuff behind f2008 and restore the older matching of digits with
F95. I am not sure it gains much to do so though.
Regression tested on x86-64.
OK for trunk?
Jerry
2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/43851
* match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
before returning MATCH_ERROR. Add check for scalar. Add check for
default integer kind. Use gfc_is_constant_expr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new.diff
Type: text/x-patch
Size: 1714 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100522/874bbf4f/attachment.bin>
More information about the Gcc-patches
mailing list