This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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 <roger@eyesopen.com>
* match.c (intrinsic_operators): Delete.
(gfc_op2string): New switch based implementation.
(gfc_match_intrinsic_op): Rewrite matcher to avoid calling
gfc_match_strings.
* gfortran.h (intrinsic_operators): Remove prototype.
(gfc_op2string): Change macro to function prototype.
Roger
--
Attachment:
patchf3.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |