This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Use of build_binary_op
- From: Paul Brook <paul at nowt dot org>
- To: dberlin at dberlin dot org,gcc at gcc dot gnu dot org
- Date: Tue, 24 Sep 2002 23:20:57 +0100
- Subject: [tree-ssa] Use of build_binary_op
I notice you've started using build_binary_op inside tree-ssa-pre.c,
specifically in and around calculate_increment.
This causes me problems with the Fortran 95 frontend because build_binary_op
is a c-specific function, and the F95 frontend doesn't currently contain an
implementation of this. A straight copy/paste of the C implementation isn't
possible because this pulls in lots of other c-specific code.
Is it really necessary to use build_bunary_op, or are you just using it as
shorthand for build(code, type, op1, op1) ? If this is the case I'd like to
request that a language independat function be used for this purpose. If
not how much of the functionality of build_binary_op do I need to
implement?
Paul Brook