[PATCH] Reduce gfc_match_strings usage
Roger Sayle
roger@eyesopen.com
Sun Aug 19 12:39:00 GMT 2007
The following patch is a resubmission of my 10th March patch to reduce the
usage of (the inefficient) gfc_match_strings in the gfortran front-end.
http://gcc.gnu.org/ml/fortran/2007-03/msg00226.html
Although this patch was approved back then by Jerry DeLisle in
http://gcc.gnu.org/ml/fortran/2007-03/msg00229.html and it was supported
in principle by FX (who reconfirmed that gfc_match_strings is the
"hottest" CPU hog in the gfortran front-end), it's been a while, so I
thought I'd get it reapproved rather than commit it out of the blue.
The following patch has been retested again current mainline on
x86_64-unknown-linux-gnu, with a full "make bootstrap", including
gfortran, and top-level "make -k check" with no new failures.
Ok for mainline?
2007-08-18 Roger Sayle <roger@eyesopen.com>
* primary.c (match_logical_constant_string): New function to match
a ".true." or a ".false.".
(match_logical_constant): Use it instead of gfc_match_strings.
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite #D, 9 Bisbee Court, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87508. Fax: (+1) 505-473-0833
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070819/22c3dbd6/attachment.txt>
More information about the Fortran
mailing list