+2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>

+
+       * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.

From-SVN: r72333
This commit is contained in:
Andrew Pinski 2003-10-11 07:22:22 +00:00 committed by Andrew Pinski
parent d3c34e42c3
commit 379f1861d3
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
* genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
* config/m68k/m68k-protos.h: Remove the prototype for

View File

@ -790,18 +790,18 @@ emit_mode_mask (void)
print_decl ("unsigned HOST_WIDE_INT", "mode_mask_array",
"NUM_MACHINE_MODES");
puts ("\
#define MASK(m) \\\n\
#define MODE_MASK(m) \\\n\
((m) >= HOST_BITS_PER_WIDE_INT) \\\n\
? ~(unsigned HOST_WIDE_INT) 0 \\\n\
: ((unsigned HOST_WIDE_INT) 1 << (m)) - 1\n");
for_all_modes (c, m)
if (m->bitsize != (unsigned int)-1)
tagged_printf ("MASK (%u)", m->bitsize, m->name);
tagged_printf ("MODE_MASK (%u)", m->bitsize, m->name);
else
tagged_printf ("MASK (%u*BITS_PER_UNIT)", m->bytesize, m->name);
tagged_printf ("MODE_MASK (%u*BITS_PER_UNIT)", m->bytesize, m->name);
puts ("#undef MASK");
puts ("#undef MODE_MASK");
print_closer ();
}