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]

Re: Bug in expmed.c:init_expmed


On Mon, 10 Apr 2000 12:36:57 -0700, Mark Mitchell wrote:

  You could use an enum, which would make that clear; then,
  no_insert/insert would be of the wrong type to pass to other
  functions.  Even that seems like a lot of clutter to me, but it seems
  better than the macro bits.

An added benefit of using enum types is in debugging. I really
like the fact that GDB can print out a meaningful name instead of
an integer. Using macros only makes things worse in that respect,
since you'll have to know the definition of the macro.

Regards,
   Geert



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