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: Reorder some tree codes


Giovanni Bajo wrote:
Mark Mitchell <mark@codesourcery.com> wrote:


I'm not really concerned that this makes the macros harder to
understand, as I'm not convinced that's true.



Am I supposed to learn that PARM_DECL is in the range between CONST_DECL and
TYPE_DECL by heart? Or am I supposed to look it up into tree.def anytime I need
it?

My thinking is that you should almost never have to look, because the comment on the macro should tell you what it does. In those rare occasions where you must debug the macro itself, then, yes, you'd look in tree.def.


Fortunately, this may be a moot point if the middle-end already knows how to do this optimization.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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