Patchwork Committed: Fix PR target/52500

login
register
mail settings
Submitter Joern Rennecke
Date Feb. 26, 2013, 3:24 p.m.
Message ID <20130226102428.hag2fvun34k4o4k8-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/223235/
State New
Headers show

Comments

Joern Rennecke - Feb. 26, 2013, 3:24 p.m.
Committed as obvious.
2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>

	PR target/52500
	* config/c6x/c6x.c (dbx_register_map): Change to unsigned.
	* config/c6x/c6x.h (dbx_register_map): Update declaration.

Patch

Index: config/c6x/c6x.c
===================================================================
--- config/c6x/c6x.c	(revision 196254)
+++ config/c6x/c6x.c	(working copy)
@@ -183,7 +183,7 @@  enum unitreqs
 static unit_req_table unit_reqs;
 
 /* Register map for debugging.  */
-int const dbx_register_map[FIRST_PSEUDO_REGISTER] =
+unsigned const dbx_register_map[FIRST_PSEUDO_REGISTER] =
 {
   0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,	/* A0 - A15.  */
   37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,	/* A16 - A32.  */
Index: config/c6x/c6x.h
===================================================================
--- config/c6x/c6x.h	(revision 196254)
+++ config/c6x/c6x.h	(working copy)
@@ -521,7 +521,7 @@  #define REGISTER_NAMES						\
 
 #define DBX_REGISTER_NUMBER(N) (dbx_register_map[(N)])
 
-extern int const dbx_register_map[FIRST_PSEUDO_REGISTER];
+extern unsigned const dbx_register_map[FIRST_PSEUDO_REGISTER];
 
 #define FINAL_PRESCAN_INSN c6x_final_prescan_insn