Commit e13a0ccb by Joern Rennecke Committed by Joern Rennecke

re PR target/52500 (dwarf2cfi.c fails to build with -Werror for c6x)

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

From-SVN: r196286
parent 9b639e2c
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
temp, cond and label. temp, cond and label.
* config/lm32/lm32.md (ashlsi3): Remove unused variable one. * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
PR target/52500
* config/c6x/c6x.c (dbx_register_map): Change to unsigned.
* config/c6x/c6x.h (dbx_register_map): Update declaration.
2013-02-26 Marek Polacek <polacek@redhat.com> 2013-02-26 Marek Polacek <polacek@redhat.com>
PR tree-optimization/56426 PR tree-optimization/56426
......
...@@ -183,7 +183,7 @@ typedef int unit_req_table[2][UNIT_REQ_MAX]; ...@@ -183,7 +183,7 @@ typedef int unit_req_table[2][UNIT_REQ_MAX];
static unit_req_table unit_reqs; static unit_req_table unit_reqs;
/* Register map for debugging. */ /* 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. */ 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. */ 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, /* A16 - A32. */
......
...@@ -521,7 +521,7 @@ struct GTY(()) machine_function ...@@ -521,7 +521,7 @@ struct GTY(()) machine_function
#define DBX_REGISTER_NUMBER(N) (dbx_register_map[(N)]) #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 #define FINAL_PRESCAN_INSN c6x_final_prescan_insn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment