Index: contrib/gdb/gdb/arch-utils.c =================================================================== --- contrib/gdb/gdb/arch-utils.c +++ contrib/gdb/gdb/arch-utils.c @@ -45,7 +45,7 @@ { char *registers = deprecated_grub_regcache_for_registers (regcache); bfd_byte *buf = valbuf; - DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, buf); /* OK */ + DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, (char *)buf); /* OK */ } /* Implementation of store return value that grubs the register cache. @@ -57,7 +57,7 @@ bfd_byte *b = alloca (TYPE_LENGTH (type)); gdb_assert (regcache == current_regcache); memcpy (b, buf, TYPE_LENGTH (type)); - DEPRECATED_STORE_RETURN_VALUE (type, b); + DEPRECATED_STORE_RETURN_VALUE (type, (char *)b); } Index: contrib/gdb/gdb/ax-gdb.c =================================================================== --- contrib/gdb/gdb/ax-gdb.c +++ contrib/gdb/gdb/ax-gdb.c @@ -743,6 +743,9 @@ case TYPE_CODE_ENUM: value->type = builtin_type_int; break; + + default: + break; } /* If the value is an lvalue, dereference it. */ Index: contrib/gdb/gdb/breakpoint.c =================================================================== --- contrib/gdb/gdb/breakpoint.c +++ contrib/gdb/gdb/breakpoint.c @@ -2647,7 +2647,7 @@ /* Is this a catchpoint of a load or unload? If so, did we get a load or unload of the specified library? If not, ignore it. */ - if ((b->type == bp_catch_load) + if (b->type == bp_catch_load #if defined(SOLIB_HAVE_LOAD_EVENT) && (!SOLIB_HAVE_LOAD_EVENT (PIDGET (inferior_ptid)) || ((b->dll_pathname != NULL) @@ -2659,7 +2659,7 @@ ) continue; - if ((b->type == bp_catch_unload) + if (b->type == bp_catch_unload #if defined(SOLIB_HAVE_UNLOAD_EVENT) && (!SOLIB_HAVE_UNLOAD_EVENT (PIDGET (inferior_ptid)) || ((b->dll_pathname != NULL) @@ -5543,7 +5543,6 @@ sal = sals.sals[i]; if (find_pc_partial_function (sal.pc, (char **) NULL, &low, &high)) { - break_string; if (extra_args_len) break_string = xstrprintf ("*0x%s %s", paddr_nz (high), extra_args); @@ -7620,7 +7619,7 @@ int mem_cnt = can_use_hardware_watchpoint (bpt->val); /* Hack around 'unused var' error for some targets here */ - (void) mem_cnt, i; + (void) mem_cnt; target_resources_ok = TARGET_CAN_USE_HARDWARE_WATCHPOINT ( bpt->type, i + mem_cnt, other_type_used); /* we can consider of type is bp_hardware_watchpoint, convert to Index: contrib/gdb/gdb/c-typeprint.c =================================================================== --- contrib/gdb/gdb/c-typeprint.c +++ contrib/gdb/gdb/c-typeprint.c @@ -540,7 +540,7 @@ fprintf_filtered (stream, ")"); fprintf_filtered (stream, "["); - if (TYPE_LENGTH (type) >= 0 && TYPE_LENGTH (TYPE_TARGET_TYPE (type)) > 0 + if ((int)(TYPE_LENGTH (type)) >= 0 && TYPE_LENGTH (TYPE_TARGET_TYPE (type)) > 0 && TYPE_ARRAY_UPPER_BOUND_TYPE (type) != BOUND_CANNOT_BE_DETERMINED) fprintf_filtered (stream, "%d", (TYPE_LENGTH (type)