This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [FORTRAN PATCH] Reduce gfc_match_strings usage (part 2)


Roger Sayle wrote:
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.

As an aside to all the discussion about the implementation strategy for the matchers, I'd like to point out that standard Fortran has a .xor. operator, which is called .neqv.. Unless you intend to give .xor. a different precedence, its implementation should be trivial (unless I underestimate the difficulties a collision with a user-defined operator could bring), so I'm wondering what kind of difficulties are you seeing?


Cheers,
- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]