This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in expmed.c:init_expmed
- To: "kenner at vlsi1 dot ultra dot nyu dot edu" <kenner at vlsi1 dot ultra dot nyu dot edu>,"Mark Mitchell" <mark at codesourcery dot com>
- Subject: Re: Bug in expmed.c:init_expmed
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Mon, 10 Apr 2000 16:32:18 -0400
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
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