[FORTRAN PATCH] Reduce gfc_match_strings usage (part 2)
Sun Mar 11 03:54:00 GMT 2007
This is more ambitious patch proposes eliminating the intrinsic_operators
table from the gfortran front-end, and instead using a more efficient
pattern matcher implementation in gfc_match_intrinsic_op. In addition to
the expected performance improvement, this implementation simplifies the
task of adding support for ".xor." as a GNU fortran extension.
The following patch has been tested on x86_64-unknown-linux-gnu with a
full "make bootstrap", all languages including fortran, and regression
tested with a top-level "make -k check" with no new failures.
Ok for mainline?
2007-03-10 Roger Sayle <email@example.com>
* match.c (intrinsic_operators): Delete.
(gfc_op2string): New switch based implementation.
(gfc_match_intrinsic_op): Rewrite matcher to avoid calling
* gfortran.h (intrinsic_operators): Remove prototype.
(gfc_op2string): Change macro to function prototype.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Gcc-patches