Revision 7ccfb2eb m68k-dis.c

b/m68k-dis.c
546 546

  
547 547
/* Local function prototypes.  */
548 548

  
549
const char * const fpcr_names[] =
549
static const char * const fpcr_names[] =
550 550
{
551 551
  "", "%fpiar", "%fpsr", "%fpiar/%fpsr", "%fpcr",
552 552
  "%fpiar/%fpcr", "%fpsr/%fpcr", "%fpiar/%fpsr/%fpcr"
553 553
};
554 554

  
555
static char *const reg_names[] =
555
static const char *const reg_names[] =
556 556
{
557 557
  "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7",
558 558
  "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%fp", "%sp",
......
561 561

  
562 562
/* Name of register halves for MAC/EMAC.
563 563
   Separate from reg_names since 'spu', 'fpl' look weird.  */
564
static char *const reg_half_names[] =
564
static const char *const reg_half_names[] =
565 565
{
566 566
  "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7",
567 567
  "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%a6", "%a7",
......
991 991
	       disassemble_info *info)
992 992
{
993 993
  int word;
994
  static char *const scales[] = { "", ":2", ":4", ":8" };
994
  static const char *const scales[] = { "", ":2", ":4", ":8" };
995 995
  bfd_vma base_disp;
996 996
  bfd_vma outer_disp;
997 997
  char buf[40];
......
1106 1106
    {
1107 1107
    case 'c':		/* Cache identifier.  */
1108 1108
      {
1109
        static char *const cacheFieldName[] = { "nc", "dc", "ic", "bc" };
1109
        static const char *const cacheFieldName[] = { "nc", "dc", "ic", "bc" };
1110 1110
        val = fetch_arg (buffer, place, 2, info);
1111 1111
        (*info->fprintf_func) (info->stream, cacheFieldName[val]);
1112 1112
        break;
......
1157 1157
	/* FIXME: There's a problem here, different m68k processors call the
1158 1158
	   same address different names. This table can't get it right
1159 1159
	   because it doesn't know which processor it's disassembling for.  */
1160
	static const struct { char *name; int value; } names[]
1160
	static const struct { const char *name; int value; } names[]
1161 1161
	  = {{"%sfc", 0x000}, {"%dfc", 0x001}, {"%cacr", 0x002},
1162 1162
	     {"%tc",  0x003}, {"%itt0",0x004}, {"%itt1", 0x005},
1163 1163
             {"%dtt0",0x006}, {"%dtt1",0x007}, {"%buscr",0x008},
......
1201 1201
    case 'M':
1202 1202
      if (place == 'h')
1203 1203
	{
1204
	  static char *const scalefactor_name[] = { "<<", ">>" };
1204
	  static const char *const scalefactor_name[] = { "<<", ">>" };
1205 1205
	  val = fetch_arg (buffer, place, 1, info);
1206 1206
	  (*info->fprintf_func) (info->stream, scalefactor_name[val]);
1207 1207
	}
......
1633 1633
    case '3':
1634 1634
      {
1635 1635
	int val = fetch_arg (buffer, place, 5, info);
1636
	char *name = 0;
1636
        const char *name = 0;
1637 1637

  
1638 1638
	switch (val)
1639 1639
	  {

Also available in: Unified diff