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: [PATCH]: cleanup for conversion exprs code patterns (1/16)


>>>>> "Tomas" == Tomas Bily <tomby@atrey.karlin.mff.cuni.cz> writes:

Tomas> There is a lot of duplicate code patterns for conversion
Tomas> expressions (CONVERT_EXPR, NOP_EXPR, NON_LVALUE_EXPR) that can
Tomas> be substituted by macro.

Did you consider just getting rid of the duplication?

IMO, we only really need CONVERT_EXPR and VIEW_CONVERT_EXPR -- i.e., a
cast operator and a "change the interpretation" operator.  I think all
the other operations are redundant given that we also carry type
information.  (Well, except NON_LVALUE_EXPR, which should be removed
but which is a different kind of problem.)

Tom


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