Blame SOURCES/gdb-rhbz795424-bitpos-23of25.patch

7a6771
http://sourceware.org/ml/gdb-patches/2012-09/msg00630.html
7a6771
Subject: [PATCH 4/4] Bitpos expansion - tdep changes
7a6771
7a6771
7a6771
--MP_/X_WjDOvz/B_fvlsrmCwRdxe
7a6771
Content-Type: text/plain; charset=US-ASCII
7a6771
Content-Transfer-Encoding: 7bit
7a6771
Content-Disposition: inline
7a6771
7a6771
Hi,
7a6771
7a6771
This is the last part of the bitpos change.  This patch does the same
7a6771
thing that patch 1/4 does, except that it does so in the *-tdep files
7a6771
wherever necessary.  I separated these changes mainly because they are
7a6771
related and can be reviewed independently.  Tested on Fedora 16 x86_64.
7a6771
7a6771
Regards,
7a6771
Siddhesh
7a6771
7a6771
--MP_/X_WjDOvz/B_fvlsrmCwRdxe
7a6771
Content-Type: text/plain
7a6771
Content-Transfer-Encoding: quoted-printable
7a6771
Content-Disposition: attachment; filename=ChangeLog-tdep
7a6771
7a6771
gdb/ChangeLog
7a6771
7a6771
	* alpha-tdep.c (alpha_push_dummy_call): Expand ACCUMULATE_SIZE,
7a6771
	REQUIRED_ARG_REGS, OFFSET, LEN, TLEN to ssize_t.
7a6771
	(struct alpha_arg): Expand members LEN, OFFSET to ssize_t.
7a6771
	* amd64-tdep.c (amd64_push_arguments): Expand NUM_ELEMENTS,
7a6771
	ELEMENT and LEN to LONGEST.
7a6771
	(amd64_return_value): Expand LEN to LONGEST.
7a6771
	* amd64-windows-tdep.c (amd64_windows_return_value): Expand LEN
7a6771
	to LONGEST.
7a6771
	* arm-tdep.c (arm_vfp_cprc_sub_candidate): Return LONGEST.
7a6771
	Expand COUNT, SUB_COUNT to LONGEST.
7a6771
	(arm_vfp_call_candidate): Expand C to LONGEST.
7a6771
	(arm_push_dummy_call): Expand LEN to LONGEST.
7a6771
	* avr-tdep.c (struct stack_item): Expand member LEN to ssize_t.
7a6771
	(push_stack_item): Expand parameter LEN to ssize_t.
7a6771
	(avr_push_dummy_call): Expand LAST_REGNUM, J, LEN to ssize_t.
7a6771
	* bfin-tdep.c (bfin_push_dummy_call): Expand TOTAL_LEN,
7a6771
	CONTAINER_LEN to ssize_t.
7a6771
	* cris-tdep.c (struct stack_item): Expand member LEN to ssize_t.
7a6771
	(push_stack_item): Expand parameter LEN to ssize_t.
7a6771
	(cris_push_dummy_call): Expand LEN, REG_DEMAND, I to ssize_t.
7a6771
	* h8300-tdep.c (h8300_push_dummy_call): Expand STACK_ALLOC,
7a6771
	STACK_OFFSET to LONGEST.  Expand LEN, PADDED_LEN, OFFSET to
7a6771
	ssize_t.
7a6771
	* hppa-tdep.c (hppa64_push_dummy_call): Expand LEN to LONGEST.
7a6771
	(hppa64_return_value): Likewise.
7a6771
	* i386-darwin-tdep.c (i386_darwin_push_dummy_call): Expand
7a6771
	ARGS_SPACE to LONGEST.
7a6771
	* i386-tdep.c (i386_push_dummy_call): Expand ARG_SPACE,
7a6771
	ARG_SPACE_USED, LEN to LONGEST.
7a6771
	(i386_reg_struct_return_p): Expand LEN to LONGEST.
7a6771
	(i386_convert_register_p): Likewise.
7a6771
	(i386_register_to_value): Likewise.
7a6771
	(i386_value_to_register): Likewise.
7a6771
	* ia64-tdep.c (ia64_push_dummy_call): Expand ARGOFFSET, LEN,
7a6771
	NSLOTS, MEMSLOTS to LONGEST.
7a6771
	* iq2000-tdep.c (iq2000_push_dummy_call): Expand TYPELEN,
7a6771
	STACKSPACE to LONGEST.
7a6771
	* m32r-tdep.c (m32r_push_dummy_call): Expand LEN to LONGEST.
7a6771
	* m68k-tdep.c (m68k_reg_struct_return_p): Expand LEN to LONGEST.
7a6771
	(m68k_push_dummy_call): Expand LEN, CONTAINER_LEN, OFFSET to
7a6771
	LONGEST.
7a6771
	* m88k-tdep.c (m88k_store_arguments): Expand NUM_STACK_WORDS,
7a6771
	LEN, STACK_WORD to LONGEST.
7a6771
	* mep-tdep.c (push_large_arguments): Expand ARG_LEN to ULONGEST.
7a6771
	* microblaze-tdep.c (microblaze_store_return_value): Expand LEN to
7a6771
	LONGEST.
7a6771
	* mips-tdep.c (mips_xfer_register): Expand parameter BUF_OFFSET to
7a6771
	LONGEST.  Use plongest to format print BUF_OFFSET.
7a6771
	(mips_eabi_push_dummy_call): Expand LEN to LONGEST.  Use plongest
7a6771
	to format print LEN.
7a6771
	(mips_n32n64_fp_arg_chunk_p): Expand parameter OFFSET to LONGEST.
7a6771
	Expand POS to LONGEST.
7a6771
	(mips_n32n64_push_dummy_call): Expand LEN to LONGEST.
7a6771
	(mips_n32n64_return_value): Expand OFFSET to LONGEST.  Use
7a6771
	plongest to format print OFFSET.
7a6771
	(mips_o32_push_dummy_call): Expand LEN to LONGEST.  Use plongest
7a6771
	to format print LEN.
7a6771
	(mips_o64_push_dummy_call): Expand LEN, STACK_OFFSET to LONGEST.
7a6771
	Use plongest to format print LEN.
7a6771
	* mn10300-tdep.c (mn10300_push_dummy_call): Expand LEN to
7a6771
	LONGEST.
7a6771
	* mt-tdep.c (mt_push_dummy_call): Expand STACK_DEST, TYPELEN to
7a6771
	LONGEST.
7a6771
	* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Expand
7a6771
	ARGSPACE, ARGOFFSET, STRUCTOFFSET, LEN, to LONGEST.
7a6771
	(ppc64_sysv_abi_push_dummy_call): Expand BYTE, LEN to ssize_t.
7a6771
	* rl78-tdep.c (rl78_push_dummy_call): Expand LEN, CONTAINER_LEN
7a6771
	to LONGEST.
7a6771
	* rs6000-aix-tdep.c (rs6000_push_dummy_call): Expand ARGBYTES,
7a6771
	LEN to LONGEST.
7a6771
	(ran_out_of_registers_for_arguments): Expand SPACE, JJ to
7a6771
	LONGEST.
7a6771
	* s390-linux-tdep.c (s390_value_from_register): Expand LEN to LONGEST.
7a6771
	(is_power_of_two): Expand parameter N to ULONGEST.
7a6771
	(s390_push_dummy_call): Expand LENGTH to ULONGEST.
7a6771
	* score-tdep.c (score_push_dummy_call): Expand ARGLEN to
7a6771
	LONGEST.
7a6771
	* sh-tdep.c (sh_use_struct_convention) Expand len to LONGEST.
7a6771
	(sh_justify_value_in_reg): Expand parameter LEN to LONGEST.
7a6771
	(sh_push_dummy_call_fpu): Expand LEN to LONGEST.  Expand REG_SIZE
7a6771
	to ssize_t.
7a6771
	(sh_push_dummy_call_nofpu): Likewise.
7a6771
	* sh64-tdep.c (sh64_push_dummy_call): Expand STACK_OFFSET,
7a6771
	STACK_ALLOC, LEN to LONGEST.
7a6771
	* sparc-tdep.c (sparc32_store_arguments): Expand LEN to LONGEST.
7a6771
	* sparc64-tdep.c (sparc64_store_floating_fields): Expand
7a6771
	parameter BITPOS to LONGEST.  Expand SUBPOS to LONGEST.
7a6771
	(sparc64_extract_floating_fields): Likewise.
7a6771
	(sparc64_store_arguments): Expand LEN to LONGEST.
7a6771
	* spu-tdep.c (spu_push_dummy_call): Expand N_REGS, LEN to LONGEST.
7a6771
	(spu_value_from_register): Expand LEN to LONGEST.
7a6771
	* tic6x-tdep.c (tic6x_push_dummy_call): Expand REFERENCES_OFFST,
7a6771
	LEN to LONGEST.  Expand LEN to ssize_t.  Use plongest to format
7a6771
	print LEN.
7a6771
	* tilegx-tdep.c (tilegx_push_dummy_call): Expand TYPELEN,
7a6771
	SLACKLEN, ALIGNLEN to LONGEST.
7a6771
	* v850-tdep.c (v850_push_dummy_call): Expand LEN to LONGEST.
7a6771
	* vax-tdep.c (vax_store_arguments): Expand COUNT, LEN to LONGEST.
7a6771
	(vax_return_value): Expand LEN to LONGEST.
7a6771
	* xstormy16-tdep.c (xstormy16_push_dummy_call): Expand J, TYPELEN
7a6771
	to LONGEST.
7a6771
	* xtensa-tdep.c (xtensa_store_return_value): Print LEN instead of
7a6771
	TYPE_LENGTH..
7a6771
	(struct argument_info): Expoand member LENGTH to ssize_t.
7a6771
	(struct argument_info.u): Expand member OFFSET to ssize_t.
7a6771
	(xtensa_push_dummy_call): Expand SIZE, ONSTACK_SIZE to LONGEST.
7a6771
	Expand N to ssize_t.  Use pulongest to format print TYPE_LENGTH.
7a6771
7a6771
--MP_/X_WjDOvz/B_fvlsrmCwRdxe
7a6771
Content-Type: text/x-patch
7a6771
Content-Transfer-Encoding: 7bit
7a6771
Content-Disposition: attachment; filename=bitpos-tdep.patch
7a6771
7a6771
Index: gdb-7.11.50.20160716/gdb/alpha-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/alpha-tdep.c	2016-07-16 14:35:45.390502718 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/alpha-tdep.c	2016-07-16 14:35:47.511519788 +0200
7a6771
@@ -299,17 +299,17 @@
7a6771
 {
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int i;
7a6771
-  int accumulate_size = struct_return ? 8 : 0;
7a6771
+  ssize_t accumulate_size = struct_return ? 8 : 0;
7a6771
   struct alpha_arg
7a6771
     {
7a6771
       const gdb_byte *contents;
7a6771
-      int len;
7a6771
-      int offset;
7a6771
+      ssize_t len;
7a6771
+      ssize_t offset;
7a6771
     };
7a6771
   struct alpha_arg *alpha_args = XALLOCAVEC (struct alpha_arg, nargs);
7a6771
   struct alpha_arg *m_arg;
7a6771
   gdb_byte arg_reg_buffer[ALPHA_REGISTER_SIZE * ALPHA_NUM_ARG_REGS];
7a6771
-  int required_arg_regs;
7a6771
+  ssize_t required_arg_regs;
7a6771
   CORE_ADDR func_addr = find_function_addr (function, NULL);
7a6771
 
7a6771
   /* The ABI places the address of the called function in T12.  */
7a6771
@@ -429,8 +429,8 @@
7a6771
   for (i = nargs; m_arg--, --i >= 0;)
7a6771
     {
7a6771
       const gdb_byte *contents = m_arg->contents;
7a6771
-      int offset = m_arg->offset;
7a6771
-      int len = m_arg->len;
7a6771
+      ssize_t offset = m_arg->offset;
7a6771
+      ssize_t len = m_arg->len;
7a6771
 
7a6771
       /* Copy the bytes destined for registers into arg_reg_buffer.  */
7a6771
       if (offset < sizeof(arg_reg_buffer))
7a6771
@@ -442,7 +442,7 @@
7a6771
 	    }
7a6771
 	  else
7a6771
 	    {
7a6771
-	      int tlen = sizeof(arg_reg_buffer) - offset;
7a6771
+	      ssize_t tlen = sizeof(arg_reg_buffer) - offset;
7a6771
 	      memcpy (arg_reg_buffer + offset, contents, tlen);
7a6771
 	      offset += tlen;
7a6771
 	      contents += tlen;
7a6771
Index: gdb-7.11.50.20160716/gdb/amd64-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/amd64-tdep.c	2016-07-16 14:35:45.391502726 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/amd64-tdep.c	2016-07-16 14:35:47.512519796 +0200
7a6771
@@ -729,7 +729,7 @@
7a6771
 		    gdb_byte *readbuf, const gdb_byte *writebuf)
7a6771
 {
7a6771
   enum amd64_reg_class theclass[2];
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
   static int integer_regnum[] = { AMD64_RAX_REGNUM, AMD64_RDX_REGNUM };
7a6771
   static int sse_regnum[] = { AMD64_XMM0_REGNUM, AMD64_XMM1_REGNUM };
7a6771
   int integer_reg = 0;
7a6771
@@ -880,8 +880,8 @@
7a6771
   };
7a6771
   struct value **stack_args = XALLOCAVEC (struct value *, nargs);
7a6771
   int num_stack_args = 0;
7a6771
-  int num_elements = 0;
7a6771
-  int element = 0;
7a6771
+  LONGEST num_elements = 0;
7a6771
+  LONGEST element = 0;
7a6771
   int integer_reg = 0;
7a6771
   int sse_reg = 0;
7a6771
   int i;
7a6771
@@ -893,7 +893,7 @@
7a6771
   for (i = 0; i < nargs; i++)
7a6771
     {
7a6771
       struct type *type = value_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
       enum amd64_reg_class theclass[2];
7a6771
       int needed_integer_regs = 0;
7a6771
       int needed_sse_regs = 0;
7a6771
Index: gdb-7.11.50.20160716/gdb/amd64-windows-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/amd64-windows-tdep.c	2016-07-16 14:35:45.393502742 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/amd64-windows-tdep.c	2016-07-16 14:35:47.512519796 +0200
7a6771
@@ -288,7 +288,7 @@
7a6771
 			    struct type *type, struct regcache *regcache,
7a6771
 			    gdb_byte *readbuf, const gdb_byte *writebuf)
7a6771
 {
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
   int regnum = -1;
7a6771
 
7a6771
   /* See if our value is returned through a register.  If it is, then
7a6771
Index: gdb-7.11.50.20160716/gdb/arm-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/arm-tdep.c	2016-07-16 14:35:45.400502798 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/arm-tdep.c	2016-07-16 14:36:30.328864376 +0200
7a6771
@@ -3443,7 +3443,7 @@
7a6771
    array).  Vector types are not currently supported, matching the
7a6771
    generic AAPCS support.  */
7a6771
 
7a6771
-static int
7a6771
+static LONGEST
7a6771
 arm_vfp_cprc_sub_candidate (struct type *t,
7a6771
 			    enum arm_vfp_cprc_base_type *base_type)
7a6771
 {
7a6771
@@ -3526,7 +3526,7 @@
7a6771
 	  }
7a6771
 	else
7a6771
 	  {
7a6771
-	    int count;
7a6771
+	    LONGEST count;
7a6771
 	    unsigned unitlen;
7a6771
 
7a6771
 	    count = arm_vfp_cprc_sub_candidate (TYPE_TARGET_TYPE (t),
7a6771
@@ -3549,12 +3549,12 @@
7a6771
 
7a6771
     case TYPE_CODE_STRUCT:
7a6771
       {
7a6771
-	int count = 0;
7a6771
+	LONGEST count = 0;
7a6771
 	unsigned unitlen;
7a6771
 	int i;
7a6771
 	for (i = 0; i < TYPE_NFIELDS (t); i++)
7a6771
 	  {
7a6771
-	    int sub_count = 0;
7a6771
+	    LONGEST sub_count = 0;
7a6771
 
7a6771
 	    if (!field_is_static (&TYPE_FIELD (t, i)))
7a6771
 	      sub_count = arm_vfp_cprc_sub_candidate (TYPE_FIELD_TYPE (t, i),
7a6771
@@ -3578,13 +3578,15 @@
7a6771
 
7a6771
     case TYPE_CODE_UNION:
7a6771
       {
7a6771
-	int count = 0;
7a6771
+	LONGEST count = 0;
7a6771
 	unsigned unitlen;
7a6771
 	int i;
7a6771
 	for (i = 0; i < TYPE_NFIELDS (t); i++)
7a6771
 	  {
7a6771
-	    int sub_count = arm_vfp_cprc_sub_candidate (TYPE_FIELD_TYPE (t, i),
7a6771
-							base_type);
7a6771
+	    LONGEST sub_count;
7a6771
+
7a6771
+	    sub_count = arm_vfp_cprc_sub_candidate (TYPE_FIELD_TYPE (t, i),
7a6771
+						    base_type);
7a6771
 	    if (sub_count == -1)
7a6771
 	      return -1;
7a6771
 	    count = (count > sub_count ? count : sub_count);
7a6771
@@ -3620,7 +3622,7 @@
7a6771
 			int *count)
7a6771
 {
7a6771
   enum arm_vfp_cprc_base_type b = VFP_CPRC_UNKNOWN;
7a6771
-  int c = arm_vfp_cprc_sub_candidate (t, &b);
7a6771
+  LONGEST c = arm_vfp_cprc_sub_candidate (t, &b);
7a6771
   if (c <= 0 || c > 4)
7a6771
     return 0;
7a6771
   *base_type = b;
7a6771
@@ -3701,7 +3703,7 @@
7a6771
 
7a6771
   for (argnum = 0; argnum < nargs; argnum++)
7a6771
     {
7a6771
-      int len;
7a6771
+      LONGEST len;
7a6771
       struct type *arg_type;
7a6771
       struct type *target_type;
7a6771
       enum type_code typecode;
7a6771
Index: gdb-7.11.50.20160716/gdb/avr-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/avr-tdep.c	2016-07-16 14:35:45.401502806 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/avr-tdep.c	2016-07-16 14:35:47.516519828 +0200
7a6771
@@ -1195,13 +1195,13 @@
7a6771
 
7a6771
 struct stack_item
7a6771
 {
7a6771
-  int len;
7a6771
+  ssize_t len;
7a6771
   struct stack_item *prev;
7a6771
   gdb_byte *data;
7a6771
 };
7a6771
 
7a6771
 static struct stack_item *
7a6771
-push_stack_item (struct stack_item *prev, const bfd_byte *contents, int len)
7a6771
+push_stack_item (struct stack_item *prev, const bfd_byte *contents, ssize_t len)
7a6771
 {
7a6771
   struct stack_item *si;
7a6771
   si = XNEW (struct stack_item);
7a6771
@@ -1289,12 +1289,12 @@
7a6771
 
7a6771
   for (i = 0; i < nargs; i++)
7a6771
     {
7a6771
-      int last_regnum;
7a6771
-      int j;
7a6771
+      ssize_t last_regnum;
7a6771
+      ssize_t j;
7a6771
       struct value *arg = args[i];
7a6771
       struct type *type = check_typedef (value_type (arg));
7a6771
       const bfd_byte *contents = value_contents (arg);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      ssize_t len = TYPE_LENGTH (type);
7a6771
 
7a6771
       /* Calculate the potential last register needed.
7a6771
          E.g. For length 2, registers regnum and regnum-1 (say 25 and 24)
7a6771
Index: gdb-7.11.50.20160716/gdb/bfin-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/bfin-tdep.c	2016-07-16 14:35:45.401502806 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/bfin-tdep.c	2016-07-16 14:35:47.516519828 +0200
7a6771
@@ -502,7 +502,7 @@
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int i;
7a6771
   long reg_r0, reg_r1, reg_r2;
7a6771
-  int total_len = 0;
7a6771
+  ssize_t total_len = 0;
7a6771
 
7a6771
   for (i = nargs - 1; i >= 0; i--)
7a6771
     {
7a6771
@@ -524,7 +524,7 @@
7a6771
     {
7a6771
       struct type *value_type = value_enclosing_type (args[i]);
7a6771
       struct type *arg_type = check_typedef (value_type);
7a6771
-      int container_len = (TYPE_LENGTH (value_type) + 3) & ~3;
7a6771
+      ssize_t container_len = (TYPE_LENGTH (value_type) + 3) & ~3;
7a6771
 
7a6771
       sp -= container_len;
7a6771
       write_memory (sp, value_contents (args[i]), container_len);
7a6771
Index: gdb-7.11.50.20160716/gdb/cris-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/cris-tdep.c	2016-07-16 14:35:45.403502823 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/cris-tdep.c	2016-07-16 14:35:47.517519836 +0200
7a6771
@@ -663,13 +663,13 @@
7a6771
 
7a6771
 struct stack_item
7a6771
 {
7a6771
-  int len;
7a6771
+  ssize_t len;
7a6771
   struct stack_item *prev;
7a6771
   gdb_byte *data;
7a6771
 };
7a6771
 
7a6771
 static struct stack_item *
7a6771
-push_stack_item (struct stack_item *prev, const gdb_byte *contents, int len)
7a6771
+push_stack_item (struct stack_item *prev, const gdb_byte *contents, ssize_t len)
7a6771
 {
7a6771
   struct stack_item *si = XNEW (struct stack_item);
7a6771
   si->data = (gdb_byte *) xmalloc (len);
7a6771
@@ -833,13 +833,13 @@
7a6771
 
7a6771
   for (argnum = 0; argnum < nargs; argnum++)
7a6771
     {
7a6771
-      int len;
7a6771
+      ssize_t len;
7a6771
       const gdb_byte *val;
7a6771
-      int reg_demand;
7a6771
-      int i;
7a6771
+      ssize_t reg_demand;
7a6771
+      ssize_t i;
7a6771
       
7a6771
-      len = TYPE_LENGTH (value_type (args[argnum]));
7a6771
       val = value_contents (args[argnum]);
7a6771
+      len = TYPE_LENGTH (value_type (args[argnum]));
7a6771
       
7a6771
       /* How may registers worth of storage do we need for this argument?  */
7a6771
       reg_demand = (len / 4) + (len % 4 != 0 ? 1 : 0);
7a6771
Index: gdb-7.11.50.20160716/gdb/h8300-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/h8300-tdep.c	2016-07-16 14:35:45.403502823 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/h8300-tdep.c	2016-07-16 14:35:47.517519836 +0200
7a6771
@@ -637,7 +637,7 @@
7a6771
 		       int struct_return, CORE_ADDR struct_addr)
7a6771
 {
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
-  int stack_alloc = 0, stack_offset = 0;
7a6771
+  LONGEST stack_alloc = 0, stack_offset = 0;
7a6771
   int wordsize = BINWORD (gdbarch);
7a6771
   int reg = E_ARG0_REGNUM;
7a6771
   int argument;
7a6771
@@ -664,11 +664,11 @@
7a6771
     {
7a6771
       struct cleanup *back_to;
7a6771
       struct type *type = value_type (args[argument]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      ssize_t len = TYPE_LENGTH (type);
7a6771
       char *contents = (char *) value_contents (args[argument]);
7a6771
 
7a6771
       /* Pad the argument appropriately.  */
7a6771
-      int padded_len = align_up (len, wordsize);
7a6771
+      ssize_t padded_len = align_up (len, wordsize);
7a6771
       gdb_byte *padded = (gdb_byte *) xmalloc (padded_len);
7a6771
       back_to = make_cleanup (xfree, padded);
7a6771
 
7a6771
@@ -697,7 +697,7 @@
7a6771
 	      /* Heavens to Betsy --- it's really going in registers!
7a6771
 	         Note that on the h8/300s, there are gaps between the
7a6771
 	         registers in the register file.  */
7a6771
-	      int offset;
7a6771
+	      ssize_t offset;
7a6771
 
7a6771
 	      for (offset = 0; offset < padded_len; offset += wordsize)
7a6771
 		{
7a6771
Index: gdb-7.11.50.20160716/gdb/hppa-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/hppa-tdep.c	2016-07-16 14:35:45.405502839 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/hppa-tdep.c	2016-07-16 14:35:47.518519844 +0200
7a6771
@@ -991,7 +991,7 @@
7a6771
     {
7a6771
       struct value *arg = args[i];
7a6771
       struct type *type = value_type (arg);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
       const bfd_byte *valbuf;
7a6771
       bfd_byte fptrbuf[8];
7a6771
       int regnum;
7a6771
@@ -1186,7 +1186,7 @@
7a6771
 		     struct type *type, struct regcache *regcache,
7a6771
 		     gdb_byte *readbuf, const gdb_byte *writebuf)
7a6771
 {
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
   int regnum, offset;
7a6771
 
7a6771
   if (len > 16)
7a6771
Index: gdb-7.11.50.20160716/gdb/i386-darwin-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/i386-darwin-tdep.c	2016-07-16 14:35:45.405502839 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/i386-darwin-tdep.c	2016-07-16 14:35:47.518519844 +0200
7a6771
@@ -163,7 +163,7 @@
7a6771
 
7a6771
   for (write_pass = 0; write_pass < 2; write_pass++)
7a6771
     {
7a6771
-      int args_space = 0;
7a6771
+      LONGEST args_space = 0;
7a6771
       int num_m128 = 0;
7a6771
 
7a6771
       if (struct_return)
7a6771
Index: gdb-7.11.50.20160716/gdb/i386-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/i386-tdep.c	2016-07-16 14:35:45.410502879 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/i386-tdep.c	2016-07-16 14:35:47.520519860 +0200
7a6771
@@ -2664,7 +2664,7 @@
7a6771
   gdb_byte buf[4];
7a6771
   int i;
7a6771
   int write_pass;
7a6771
-  int args_space = 0;
7a6771
+  LONGEST args_space = 0;
7a6771
 
7a6771
   /* Determine the total space required for arguments and struct
7a6771
      return address in a first pass (allowing for 16-byte-aligned
7a6771
@@ -2672,7 +2672,7 @@
7a6771
 
7a6771
   for (write_pass = 0; write_pass < 2; write_pass++)
7a6771
     {
7a6771
-      int args_space_used = 0;
7a6771
+      LONGEST args_space_used = 0;
7a6771
 
7a6771
       if (struct_return)
7a6771
 	{
7a6771
@@ -2689,7 +2689,7 @@
7a6771
 
7a6771
       for (i = 0; i < nargs; i++)
7a6771
 	{
7a6771
-	  int len = TYPE_LENGTH (value_enclosing_type (args[i]));
7a6771
+	  LONGEST len = TYPE_LENGTH (value_enclosing_type (args[i]));
7a6771
 
7a6771
 	  if (write_pass)
7a6771
 	    {
7a6771
@@ -2896,7 +2896,7 @@
7a6771
 {
7a6771
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
7a6771
   enum type_code code = TYPE_CODE (type);
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
   gdb_assert (code == TYPE_CODE_STRUCT
7a6771
               || code == TYPE_CODE_UNION
7a6771
@@ -3718,7 +3718,7 @@
7a6771
 i386_convert_register_p (struct gdbarch *gdbarch,
7a6771
 			 int regnum, struct type *type)
7a6771
 {
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
   /* Values may be spread across multiple registers.  Most debugging
7a6771
      formats aren't expressive enough to specify the locations, so
7a6771
@@ -3751,7 +3751,7 @@
7a6771
 			int *optimizedp, int *unavailablep)
7a6771
 {
7a6771
   struct gdbarch *gdbarch = get_frame_arch (frame);
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
   if (i386_fp_regnum_p (gdbarch, regnum))
7a6771
     return i387_register_to_value (frame, regnum, type, to,
7a6771
@@ -3787,7 +3787,7 @@
7a6771
 i386_value_to_register (struct frame_info *frame, int regnum,
7a6771
 			struct type *type, const gdb_byte *from)
7a6771
 {
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
   if (i386_fp_regnum_p (get_frame_arch (frame), regnum))
7a6771
     {
7a6771
Index: gdb-7.11.50.20160716/gdb/iq2000-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/iq2000-tdep.c	2016-07-16 14:35:45.411502887 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/iq2000-tdep.c	2016-07-16 14:35:47.520519860 +0200
7a6771
@@ -646,8 +646,9 @@
7a6771
   const bfd_byte *val;
7a6771
   bfd_byte buf[4];
7a6771
   struct type *type;
7a6771
-  int i, argreg, typelen, slacklen;
7a6771
-  int stackspace = 0;
7a6771
+  int i, argreg, slacklen;
7a6771
+  LONGEST typelen;
7a6771
+  LONGEST stackspace = 0;
7a6771
   /* Used to copy struct arguments into the stack.  */
7a6771
   CORE_ADDR struct_ptr;
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/m32r-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/m32r-tdep.c	2016-07-16 14:35:45.411502887 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/m32r-tdep.c	2016-07-16 14:35:47.520519860 +0200
7a6771
@@ -685,7 +685,7 @@
7a6771
   CORE_ADDR regval;
7a6771
   gdb_byte *val;
7a6771
   gdb_byte valbuf[MAX_REGISTER_SIZE];
7a6771
-  int len;
7a6771
+  LONGEST len;
7a6771
 
7a6771
   /* First force sp to a 4-byte alignment.  */
7a6771
   sp = sp & ~3;
7a6771
Index: gdb-7.11.50.20160716/gdb/m68k-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/m68k-tdep.c	2016-07-16 14:35:45.412502895 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/m68k-tdep.c	2016-07-16 14:35:47.520519860 +0200
7a6771
@@ -382,7 +382,7 @@
7a6771
 {
7a6771
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
7a6771
   enum type_code code = TYPE_CODE (type);
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
   gdb_assert (code == TYPE_CODE_STRUCT || code == TYPE_CODE_UNION
7a6771
 	      || code == TYPE_CODE_COMPLEX);
7a6771
@@ -514,9 +514,9 @@
7a6771
   for (i = nargs - 1; i >= 0; i--)
7a6771
     {
7a6771
       struct type *value_type = value_enclosing_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (value_type);
7a6771
-      int container_len = (len + 3) & ~3;
7a6771
-      int offset;
7a6771
+      LONGEST len = TYPE_LENGTH (value_type);
7a6771
+      LONGEST container_len = (len + 3) & ~3;
7a6771
+      LONGEST offset;
7a6771
 
7a6771
       /* Non-scalars bigger than 4 bytes are left aligned, others are
7a6771
 	 right aligned.  */
7a6771
Index: gdb-7.11.50.20160716/gdb/m88k-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/m88k-tdep.c	2016-07-16 14:35:45.412502895 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/m88k-tdep.c	2016-07-16 14:35:47.521519868 +0200
7a6771
@@ -257,13 +257,13 @@
7a6771
 {
7a6771
   struct gdbarch *gdbarch = get_regcache_arch (regcache);
7a6771
   int num_register_words = 0;
7a6771
-  int num_stack_words = 0;
7a6771
+  LONGEST num_stack_words = 0;
7a6771
   int i;
7a6771
 
7a6771
   for (i = 0; i < nargs; i++)
7a6771
     {
7a6771
       struct type *type = value_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
       if (m88k_integral_or_pointer_p (type) && len < 4)
7a6771
 	{
7a6771
@@ -305,8 +305,8 @@
7a6771
     {
7a6771
       const bfd_byte *valbuf = value_contents (args[i]);
7a6771
       struct type *type = value_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
-      int stack_word = num_stack_words;
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
+      LONGEST stack_word = num_stack_words;
7a6771
 
7a6771
       if (m88k_in_register_p (type))
7a6771
 	{
7a6771
Index: gdb-7.11.50.20160716/gdb/mep-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/mep-tdep.c	2016-07-16 14:35:45.413502903 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/mep-tdep.c	2016-07-16 14:35:47.521519868 +0200
7a6771
@@ -2272,7 +2272,7 @@
7a6771
 
7a6771
   for (i = 0; i < argc; i++)
7a6771
     {
7a6771
-      unsigned arg_len = TYPE_LENGTH (value_type (argv[i]));
7a6771
+      ULONGEST arg_len = TYPE_LENGTH (value_type (argv[i]));
7a6771
 
7a6771
       if (arg_len > MEP_GPR_SIZE)
7a6771
         {
7a6771
Index: gdb-7.11.50.20160716/gdb/mips-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/mips-tdep.c	2016-07-16 14:35:45.421502967 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/mips-tdep.c	2016-07-16 14:35:47.523519884 +0200
7a6771
@@ -455,7 +455,7 @@
7a6771
 mips_xfer_register (struct gdbarch *gdbarch, struct regcache *regcache,
7a6771
 		    int reg_num, int length,
7a6771
 		    enum bfd_endian endian, gdb_byte *in,
7a6771
-		    const gdb_byte *out, int buf_offset)
7a6771
+		    const gdb_byte *out, LONGEST buf_offset)
7a6771
 {
7a6771
   int reg_offset = 0;
7a6771
 
7a6771
@@ -478,8 +478,8 @@
7a6771
     }
7a6771
   if (mips_debug)
7a6771
     fprintf_unfiltered (gdb_stderr,
7a6771
-			"xfer $%d, reg offset %d, buf offset %d, length %d, ",
7a6771
-			reg_num, reg_offset, buf_offset, length);
7a6771
+			"xfer $%d, reg offset %d, buf offset %s, length %d, ",
7a6771
+			reg_num, reg_offset, plongest (buf_offset), length);
7a6771
   if (mips_debug && out != NULL)
7a6771
     {
7a6771
       int i;
7a6771
@@ -4529,13 +4529,13 @@
7a6771
       gdb_byte valbuf[MAX_REGISTER_SIZE];
7a6771
       struct value *arg = args[argnum];
7a6771
       struct type *arg_type = check_typedef (value_type (arg));
7a6771
-      int len = TYPE_LENGTH (arg_type);
7a6771
+      LONGEST len = TYPE_LENGTH (arg_type);
7a6771
       enum type_code typecode = TYPE_CODE (arg_type);
7a6771
 
7a6771
       if (mips_debug)
7a6771
 	fprintf_unfiltered (gdb_stdlog,
7a6771
-			    "mips_eabi_push_dummy_call: %d len=%d type=%d",
7a6771
-			    argnum + 1, len, (int) typecode);
7a6771
+			    "mips_eabi_push_dummy_call: %d len=%s type=%d",
7a6771
+			    argnum + 1, plongest (len), (int) typecode);
7a6771
 
7a6771
       /* The EABI passes structures that do not fit in a register by
7a6771
          reference.  */
7a6771
@@ -4804,7 +4804,7 @@
7a6771
 
7a6771
 static int
7a6771
 mips_n32n64_fp_arg_chunk_p (struct gdbarch *gdbarch, struct type *arg_type,
7a6771
-			    int offset)
7a6771
+			    LONGEST offset)
7a6771
 {
7a6771
   int i;
7a6771
 
7a6771
@@ -4819,7 +4819,7 @@
7a6771
 
7a6771
   for (i = 0; i < TYPE_NFIELDS (arg_type); i++)
7a6771
     {
7a6771
-      int pos;
7a6771
+      LONGEST pos;
7a6771
       struct type *field_type;
7a6771
 
7a6771
       /* We're only looking at normal fields.  */
7a6771
@@ -4861,7 +4861,7 @@
7a6771
   int argreg;
7a6771
   int float_argreg;
7a6771
   int argnum;
7a6771
-  int len = 0;
7a6771
+  LONGEST len = 0;
7a6771
   int stack_offset = 0;
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   CORE_ADDR func_addr = find_function_addr (function, NULL);
7a6771
@@ -5212,11 +5212,11 @@
7a6771
 				: MIPS_V0_REGNUM);
7a6771
 	   field < TYPE_NFIELDS (type); field++, regnum += 2)
7a6771
 	{
7a6771
-	  int offset = (FIELD_BITPOS (TYPE_FIELDS (type)[field])
7a6771
-			/ TARGET_CHAR_BIT);
7a6771
+	  LONGEST offset = (FIELD_BITPOS (TYPE_FIELDS (type)[field])
7a6771
+			    / TARGET_CHAR_BIT);
7a6771
 	  if (mips_debug)
7a6771
-	    fprintf_unfiltered (gdb_stderr, "Return float struct+%d\n",
7a6771
-				offset);
7a6771
+	    fprintf_unfiltered (gdb_stderr, "Return float struct+%s\n",
7a6771
+				plongest (offset));
7a6771
 	  if (TYPE_LENGTH (TYPE_FIELD_TYPE (type, field)) == 16)
7a6771
 	    {
7a6771
 	      /* A 16-byte long double field goes in two consecutive
7a6771
@@ -5258,8 +5258,8 @@
7a6771
 	  if (offset + xfer > TYPE_LENGTH (type))
7a6771
 	    xfer = TYPE_LENGTH (type) - offset;
7a6771
 	  if (mips_debug)
7a6771
-	    fprintf_unfiltered (gdb_stderr, "Return struct+%d:%d in $%d\n",
7a6771
-				offset, xfer, regnum);
7a6771
+	    fprintf_unfiltered (gdb_stderr, "Return struct+%s:%d in $%d\n",
7a6771
+				plongest (offset), xfer, regnum);
7a6771
 	  mips_xfer_register (gdbarch, regcache,
7a6771
 			      gdbarch_num_regs (gdbarch) + regnum,
7a6771
 			      xfer, BFD_ENDIAN_UNKNOWN, readbuf, writebuf,
7a6771
@@ -5317,7 +5317,7 @@
7a6771
   int argreg;
7a6771
   int float_argreg;
7a6771
   int argnum;
7a6771
-  int len = 0;
7a6771
+  LONGEST len = 0;
7a6771
   int stack_offset = 0;
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   CORE_ADDR func_addr = find_function_addr (function, NULL);
7a6771
@@ -5381,13 +5381,13 @@
7a6771
       const gdb_byte *val;
7a6771
       struct value *arg = args[argnum];
7a6771
       struct type *arg_type = check_typedef (value_type (arg));
7a6771
-      int len = TYPE_LENGTH (arg_type);
7a6771
+      LONGEST len = TYPE_LENGTH (arg_type);
7a6771
       enum type_code typecode = TYPE_CODE (arg_type);
7a6771
 
7a6771
       if (mips_debug)
7a6771
 	fprintf_unfiltered (gdb_stdlog,
7a6771
-			    "mips_o32_push_dummy_call: %d len=%d type=%d",
7a6771
-			    argnum + 1, len, (int) typecode);
7a6771
+			    "mips_o32_push_dummy_call: %d len=%s type=%d",
7a6771
+			    argnum + 1, plongest (len), (int) typecode);
7a6771
 
7a6771
       val = value_contents (arg);
7a6771
 
7a6771
@@ -5842,8 +5842,8 @@
7a6771
   int argreg;
7a6771
   int float_argreg;
7a6771
   int argnum;
7a6771
-  int len = 0;
7a6771
-  int stack_offset = 0;
7a6771
+  LONGEST len = 0;
7a6771
+  LONGEST stack_offset = 0;
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   CORE_ADDR func_addr = find_function_addr (function, NULL);
7a6771
 
7a6771
@@ -5903,13 +5903,13 @@
7a6771
       const gdb_byte *val;
7a6771
       struct value *arg = args[argnum];
7a6771
       struct type *arg_type = check_typedef (value_type (arg));
7a6771
-      int len = TYPE_LENGTH (arg_type);
7a6771
+      LONGEST len = TYPE_LENGTH (arg_type);
7a6771
       enum type_code typecode = TYPE_CODE (arg_type);
7a6771
 
7a6771
       if (mips_debug)
7a6771
 	fprintf_unfiltered (gdb_stdlog,
7a6771
-			    "mips_o64_push_dummy_call: %d len=%d type=%d",
7a6771
-			    argnum + 1, len, (int) typecode);
7a6771
+			    "mips_o64_push_dummy_call: %d len=%s type=%d",
7a6771
+			    argnum + 1, plongest (len), (int) typecode);
7a6771
 
7a6771
       val = value_contents (arg);
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/mn10300-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/mn10300-tdep.c	2016-07-16 14:35:45.422502976 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/mn10300-tdep.c	2016-07-16 14:35:47.524519892 +0200
7a6771
@@ -1225,7 +1225,7 @@
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   const int push_size = register_size (gdbarch, E_PC_REGNUM);
7a6771
   int regs_used;
7a6771
-  int len, arg_len; 
7a6771
+  LONGEST len, arg_len; 
7a6771
   int stack_offset = 0;
7a6771
   int argnum;
7a6771
   const gdb_byte *val;
7a6771
Index: gdb-7.11.50.20160716/gdb/mt-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/mt-tdep.c	2016-07-16 14:35:45.423502984 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/mt-tdep.c	2016-07-16 14:35:47.524519892 +0200
7a6771
@@ -780,9 +780,9 @@
7a6771
   gdb_byte buf[MT_MAX_STRUCT_SIZE];
7a6771
   int argreg = MT_1ST_ARGREG;
7a6771
   int split_param_len = 0;
7a6771
-  int stack_dest = sp;
7a6771
+  LONGEST stack_dest = sp;
7a6771
   int slacklen;
7a6771
-  int typelen;
7a6771
+  LONGEST typelen;
7a6771
   int i, j;
7a6771
 
7a6771
   /* First handle however many args we can fit into MT_1ST_ARGREG thru
7a6771
Index: gdb-7.11.50.20160716/gdb/ppc-sysv-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/ppc-sysv-tdep.c	2016-07-16 14:35:45.424502992 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/ppc-sysv-tdep.c	2016-07-16 14:35:47.524519892 +0200
7a6771
@@ -66,7 +66,7 @@
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int opencl_abi = ppc_sysv_use_opencl_abi (value_type (function));
7a6771
   ULONGEST saved_sp;
7a6771
-  int argspace = 0;		/* 0 is an initial wrong guess.  */
7a6771
+  LONGEST argspace = 0;		/* 0 is an initial wrong guess.  */
7a6771
   int write_pass;
7a6771
 
7a6771
   gdb_assert (tdep->wordsize == 4);
7a6771
@@ -97,9 +97,9 @@
7a6771
       /* Next available vector register for vector arguments.  */
7a6771
       int vreg = 2;
7a6771
       /* Arguments start above the "LR save word" and "Back chain".  */
7a6771
-      int argoffset = 2 * tdep->wordsize;
7a6771
+      LONGEST argoffset = 2 * tdep->wordsize;
7a6771
       /* Structures start after the arguments.  */
7a6771
-      int structoffset = argoffset + argspace;
7a6771
+      LONGEST structoffset = argoffset + argspace;
7a6771
 
7a6771
       /* If the function is returning a `struct', then the first word
7a6771
          (which will be passed in r3) is used for struct return
7a6771
@@ -118,7 +118,7 @@
7a6771
 	{
7a6771
 	  struct value *arg = args[argno];
7a6771
 	  struct type *type = check_typedef (value_type (arg));
7a6771
-	  int len = TYPE_LENGTH (type);
7a6771
+	  ssize_t len = TYPE_LENGTH (type);
7a6771
 	  const bfd_byte *val = value_contents (arg);
7a6771
 
7a6771
 	  if (TYPE_CODE (type) == TYPE_CODE_FLT && len <= 8
7a6771
@@ -1283,11 +1283,11 @@
7a6771
 
7a6771
 static void
7a6771
 ppc64_sysv_abi_push_val (struct gdbarch *gdbarch,
7a6771
-			 const bfd_byte *val, int len, int align,
7a6771
+			 const bfd_byte *val, ssize_t len, int align,
7a6771
 			 struct ppc64_sysv_argpos *argpos)
7a6771
 {
7a6771
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
7a6771
-  int offset = 0;
7a6771
+  ssize_t offset = 0;
7a6771
 
7a6771
   /* Enforce alignment of stack location, if requested.  */
7a6771
   if (align > tdep->wordsize)
7a6771
Index: gdb-7.11.50.20160716/gdb/rl78-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/rl78-tdep.c	2016-07-16 14:35:45.424502992 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/rl78-tdep.c	2016-07-16 14:35:47.525519900 +0200
7a6771
@@ -1336,8 +1336,8 @@
7a6771
   for (i = nargs - 1; i >= 0; i--)
7a6771
     {
7a6771
       struct type *value_type = value_enclosing_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (value_type);
7a6771
-      int container_len = (len + 1) & ~1;
7a6771
+      LONGEST len = TYPE_LENGTH (value_type);
7a6771
+      LONGEST container_len = (len + 1) & ~1;
7a6771
 
7a6771
       sp -= container_len;
7a6771
       write_memory (rl78_make_data_address (sp),
7a6771
Index: gdb-7.11.50.20160716/gdb/rs6000-aix-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/rs6000-aix-tdep.c	2016-07-16 14:35:45.425503000 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/rs6000-aix-tdep.c	2016-07-16 14:35:47.525519900 +0200
7a6771
@@ -186,9 +186,9 @@
7a6771
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int ii;
7a6771
-  int len = 0;
7a6771
+  LONGEST len = 0;
7a6771
   int argno;			/* current argument number */
7a6771
-  int argbytes;			/* current argument byte */
7a6771
+  LONGEST argbytes;		/* current argument byte */
7a6771
   gdb_byte tmp_buffer[50];
7a6771
   int f_argno = 0;		/* current floating point argno */
7a6771
   int wordsize = gdbarch_tdep (gdbarch)->wordsize;
7a6771
@@ -319,7 +319,7 @@
7a6771
 
7a6771
   if ((argno < nargs) || argbytes)
7a6771
     {
7a6771
-      int space = 0, jj;
7a6771
+      LONGEST space = 0, jj;
7a6771
 
7a6771
       if (argbytes)
7a6771
 	{
7a6771
Index: gdb-7.11.50.20160716/gdb/s390-linux-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/s390-linux-tdep.c	2016-07-16 14:35:45.427503016 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/s390-linux-tdep.c	2016-07-16 14:35:47.526519908 +0200
7a6771
@@ -3125,7 +3125,7 @@
7a6771
 /* Determine whether N is a power of two.  */
7a6771
 
7a6771
 static int
7a6771
-is_power_of_two (unsigned int n)
7a6771
+is_power_of_two (ULONGEST n)
7a6771
 {
7a6771
   return n && ((n & (n - 1)) == 0);
7a6771
 }
7a6771
@@ -3182,7 +3182,7 @@
7a6771
 		 enum bfd_endian byte_order, int is_unnamed)
7a6771
 {
7a6771
   struct type *type = check_typedef (value_type (arg));
7a6771
-  unsigned int length = TYPE_LENGTH (type);
7a6771
+  ULONGEST length = TYPE_LENGTH (type);
7a6771
   int write_mode = as->regcache != NULL;
7a6771
 
7a6771
   if (s390_function_arg_float (type))
7a6771
Index: gdb-7.11.50.20160716/gdb/score-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/score-tdep.c	2016-07-16 14:35:45.428503024 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/score-tdep.c	2016-07-16 14:35:47.527519916 +0200
7a6771
@@ -514,7 +514,7 @@
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int argnum;
7a6771
   int argreg;
7a6771
-  int arglen = 0;
7a6771
+  LONGEST arglen = 0;
7a6771
   CORE_ADDR stack_offset = 0;
7a6771
   CORE_ADDR addr = 0;
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/sh-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/sh-tdep.c	2016-07-16 14:35:45.429503032 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/sh-tdep.c	2016-07-16 14:35:47.527519916 +0200
7a6771
@@ -805,7 +805,7 @@
7a6771
 static int
7a6771
 sh_use_struct_convention (int renesas_abi, struct type *type)
7a6771
 {
7a6771
-  int len = TYPE_LENGTH (type);
7a6771
+  LONGEST len = TYPE_LENGTH (type);
7a6771
   int nelem = TYPE_NFIELDS (type);
7a6771
 
7a6771
   /* The Renesas ABI returns aggregate types always on stack.  */
7a6771
@@ -907,7 +907,7 @@
7a6771
 
7a6771
 /* Helper function to justify value in register according to endianess.  */
7a6771
 static const gdb_byte *
7a6771
-sh_justify_value_in_reg (struct gdbarch *gdbarch, struct value *val, int len)
7a6771
+sh_justify_value_in_reg (struct gdbarch *gdbarch, struct value *val, LONGEST len)
7a6771
 {
7a6771
   static gdb_byte valbuf[4];
7a6771
 
7a6771
@@ -1067,7 +1067,8 @@
7a6771
   struct type *type;
7a6771
   CORE_ADDR regval;
7a6771
   const gdb_byte *val;
7a6771
-  int len, reg_size = 0;
7a6771
+  LONGEST len;
7a6771
+  int reg_size = 0;
7a6771
   int pass_on_stack = 0;
7a6771
   int treat_as_flt;
7a6771
   int last_reg_arg = INT_MAX;
7a6771
@@ -1208,7 +1209,8 @@
7a6771
   struct type *type;
7a6771
   CORE_ADDR regval;
7a6771
   const gdb_byte *val;
7a6771
-  int len, reg_size = 0;
7a6771
+  LONGEST len;
7a6771
+  int reg_size = 0;
7a6771
   int pass_on_stack = 0;
7a6771
   int last_reg_arg = INT_MAX;
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/sh64-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/sh64-tdep.c	2016-07-16 14:35:45.430503040 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/sh64-tdep.c	2016-07-16 14:35:47.528519925 +0200
7a6771
@@ -1060,7 +1060,7 @@
7a6771
 		      CORE_ADDR struct_addr)
7a6771
 {
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
-  int stack_offset, stack_alloc;
7a6771
+  LONGEST stack_offset, stack_alloc;
7a6771
   int int_argreg;
7a6771
   int float_arg_index = 0;
7a6771
   int double_arg_index = 0;
7a6771
@@ -1069,7 +1069,7 @@
7a6771
   CORE_ADDR regval;
7a6771
   const gdb_byte *val;
7a6771
   gdb_byte valbuf[8];
7a6771
-  int len;
7a6771
+  LONGEST len;
7a6771
   int argreg_size;
7a6771
   int fp_args[12];
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/sparc-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/sparc-tdep.c	2016-07-16 14:35:45.431503048 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/sparc-tdep.c	2016-07-16 14:35:47.528519925 +0200
7a6771
@@ -525,7 +525,7 @@
7a6771
   for (i = 0; i < nargs; i++)
7a6771
     {
7a6771
       struct type *type = value_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
       if (sparc_structure_or_union_p (type)
7a6771
 	  || (sparc_floating_p (type) && len == 16)
7a6771
Index: gdb-7.11.50.20160716/gdb/sparc64-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/sparc64-tdep.c	2016-07-16 14:35:45.432503056 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/sparc64-tdep.c	2016-07-16 14:35:47.528519925 +0200
7a6771
@@ -636,7 +636,8 @@
7a6771
 
7a6771
 static void
7a6771
 sparc64_store_floating_fields (struct regcache *regcache, struct type *type,
7a6771
-			       const gdb_byte *valbuf, int element, int bitpos)
7a6771
+			       const gdb_byte *valbuf, int element,
7a6771
+			       LONGEST bitpos)
7a6771
 {
7a6771
   int len = TYPE_LENGTH (type);
7a6771
 
7a6771
@@ -678,7 +679,7 @@
7a6771
       for (i = 0; i < TYPE_NFIELDS (type); i++)
7a6771
 	{
7a6771
 	  struct type *subtype = check_typedef (TYPE_FIELD_TYPE (type, i));
7a6771
-	  int subpos = bitpos + TYPE_FIELD_BITPOS (type, i);
7a6771
+	  LONGEST subpos = bitpos + TYPE_FIELD_BITPOS (type, i);
7a6771
 
7a6771
 	  sparc64_store_floating_fields (regcache, subtype, valbuf,
7a6771
 					 element, subpos);
7a6771
@@ -710,7 +711,7 @@
7a6771
 
7a6771
 static void
7a6771
 sparc64_extract_floating_fields (struct regcache *regcache, struct type *type,
7a6771
-				 gdb_byte *valbuf, int bitpos)
7a6771
+				 gdb_byte *valbuf, LONGEST bitpos)
7a6771
 {
7a6771
   if (sparc64_floating_p (type))
7a6771
     {
7a6771
@@ -747,7 +748,7 @@
7a6771
       for (i = 0; i < TYPE_NFIELDS (type); i++)
7a6771
 	{
7a6771
 	  struct type *subtype = check_typedef (TYPE_FIELD_TYPE (type, i));
7a6771
-	  int subpos = bitpos + TYPE_FIELD_BITPOS (type, i);
7a6771
+	  LONGEST subpos = bitpos + TYPE_FIELD_BITPOS (type, i);
7a6771
 
7a6771
 	  sparc64_extract_floating_fields (regcache, subtype, valbuf, subpos);
7a6771
 	}
7a6771
@@ -780,7 +781,7 @@
7a6771
   for (i = 0; i < nargs; i++)
7a6771
     {
7a6771
       struct type *type = value_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
 
7a6771
       if (sparc64_structure_or_union_p (type)
7a6771
 	  || (sparc64_complex_floating_p (type) && len == 32))
7a6771
@@ -880,7 +881,7 @@
7a6771
     {
7a6771
       const gdb_byte *valbuf = value_contents (args[i]);
7a6771
       struct type *type = value_type (args[i]);
7a6771
-      int len = TYPE_LENGTH (type);
7a6771
+      LONGEST len = TYPE_LENGTH (type);
7a6771
       int regnum = -1;
7a6771
       gdb_byte buf[16];
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/spu-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/spu-tdep.c	2016-07-16 14:35:45.433503064 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/spu-tdep.c	2016-07-16 14:35:47.529519932 +0200
7a6771
@@ -1429,7 +1429,7 @@
7a6771
       struct value *arg = args[i];
7a6771
       struct type *type = check_typedef (value_type (arg));
7a6771
       const gdb_byte *contents = value_contents (arg);
7a6771
-      int n_regs = align_up (TYPE_LENGTH (type), 16) / 16;
7a6771
+      LONGEST n_regs = align_up (TYPE_LENGTH (type), 16) / 16;
7a6771
 
7a6771
       /* If the argument doesn't wholly fit into registers, it and
7a6771
 	 all subsequent arguments go to the stack.  */
7a6771
@@ -1461,7 +1461,7 @@
7a6771
 	{
7a6771
 	  struct value *arg = args[i];
7a6771
 	  struct type *type = check_typedef (value_type (arg));
7a6771
-	  int len = TYPE_LENGTH (type);
7a6771
+	  LONGEST len = TYPE_LENGTH (type);
7a6771
 	  int preferred_slot;
7a6771
 	  
7a6771
 	  if (spu_scalar_value_p (type))
7a6771
Index: gdb-7.11.50.20160716/gdb/tic6x-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/tic6x-tdep.c	2016-07-16 14:35:45.433503064 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/tic6x-tdep.c	2016-07-16 14:35:47.529519932 +0200
7a6771
@@ -892,7 +892,7 @@
7a6771
   int argreg = 0;
7a6771
   int argnum;
7a6771
   int stack_offset = 4;
7a6771
-  int references_offset = 4;
7a6771
+  LONGEST references_offset = 4;
7a6771
   CORE_ADDR func_addr = find_function_addr (function, NULL);
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   struct type *func_type = value_type (function);
7a6771
@@ -926,7 +926,7 @@
7a6771
   /* Now make space on the stack for the args.  */
7a6771
   for (argnum = 0; argnum < nargs; argnum++)
7a6771
     {
7a6771
-      int len = align_up (TYPE_LENGTH (value_type (args[argnum])), 4);
7a6771
+      LONGEST len = align_up (TYPE_LENGTH (value_type (args[argnum])), 4);
7a6771
       if (argnum >= 10 - argreg)
7a6771
 	references_offset += len;
7a6771
       stack_offset += len;
7a6771
@@ -945,7 +945,7 @@
7a6771
       const gdb_byte *val;
7a6771
       struct value *arg = args[argnum];
7a6771
       struct type *arg_type = check_typedef (value_type (arg));
7a6771
-      int len = TYPE_LENGTH (arg_type);
7a6771
+      ssize_t len = TYPE_LENGTH (arg_type);
7a6771
       enum type_code typecode = TYPE_CODE (arg_type);
7a6771
 
7a6771
       val = value_contents (arg);
7a6771
@@ -1105,7 +1105,8 @@
7a6771
 	    }
7a6771
 	  else
7a6771
 	    internal_error (__FILE__, __LINE__,
7a6771
-			    _("unexpected length %d of arg %d"), len, argnum);
7a6771
+			    _("unexpected length %s of arg %d"),
7a6771
+			    plongest (len), argnum);
7a6771
 
7a6771
 	  addr = sp + stack_offset;
7a6771
 	  write_memory (addr, val, len);
7a6771
Index: gdb-7.11.50.20160716/gdb/tilegx-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/tilegx-tdep.c	2016-07-16 14:35:45.434503072 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/tilegx-tdep.c	2016-07-16 14:35:47.530519941 +0200
7a6771
@@ -288,7 +288,7 @@
7a6771
   CORE_ADDR stack_dest = sp;
7a6771
   int argreg = TILEGX_R0_REGNUM;
7a6771
   int i, j;
7a6771
-  int typelen, slacklen;
7a6771
+  LONGEST typelen, slacklen;
7a6771
   static const gdb_byte four_zero_words[16] = { 0 };
7a6771
 
7a6771
   /* If struct_return is 1, then the struct return address will
7a6771
Index: gdb-7.11.50.20160716/gdb/v850-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/v850-tdep.c	2016-07-16 14:35:45.434503072 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/v850-tdep.c	2016-07-16 14:35:47.530519941 +0200
7a6771
@@ -1019,7 +1019,7 @@
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int argreg;
7a6771
   int argnum;
7a6771
-  int len = 0;
7a6771
+  LONGEST len = 0;
7a6771
   int stack_offset;
7a6771
 
7a6771
   if (gdbarch_tdep (gdbarch)->abi == V850_ABI_RH850)
7a6771
@@ -1047,7 +1047,7 @@
7a6771
      in four registers available.  Loop thru args from first to last.  */
7a6771
   for (argnum = 0; argnum < nargs; argnum++)
7a6771
     {
7a6771
-      int len;
7a6771
+      LONGEST len;
7a6771
       gdb_byte *val;
7a6771
       gdb_byte valbuf[v850_reg_size];
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/vax-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/vax-tdep.c	2016-07-16 14:35:45.435503080 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/vax-tdep.c	2016-07-16 14:35:47.530519941 +0200
7a6771
@@ -111,7 +111,7 @@
7a6771
   struct gdbarch *gdbarch = get_regcache_arch (regcache);
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   gdb_byte buf[4];
7a6771
-  int count = 0;
7a6771
+  LONGEST count = 0;
7a6771
   int i;
7a6771
 
7a6771
   /* We create an argument list on the stack, and make the argument
7a6771
@@ -120,7 +120,7 @@
7a6771
   /* Push arguments in reverse order.  */
7a6771
   for (i = nargs - 1; i >= 0; i--)
7a6771
     {
7a6771
-      int len = TYPE_LENGTH (value_enclosing_type (args[i]));
7a6771
+      LONGEST len = TYPE_LENGTH (value_enclosing_type (args[i]));
7a6771
 
7a6771
       sp -= (len + 3) & ~3;
7a6771
       count += (len + 3) / 4;
7a6771
Index: gdb-7.11.50.20160716/gdb/xstormy16-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/xstormy16-tdep.c	2016-07-16 14:35:45.435503080 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/xstormy16-tdep.c	2016-07-16 14:35:47.530519941 +0200
7a6771
@@ -233,8 +233,9 @@
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   CORE_ADDR stack_dest = sp;
7a6771
   int argreg = E_1ST_ARG_REGNUM;
7a6771
-  int i, j;
7a6771
-  int typelen, slacklen;
7a6771
+  int i, slacklen;
7a6771
+  LONGEST j;
7a6771
+  LONGEST typelen;
7a6771
   const gdb_byte *val;
7a6771
   gdb_byte buf[xstormy16_pc_size];
7a6771
 
7a6771
Index: gdb-7.11.50.20160716/gdb/xtensa-tdep.c
7a6771
===================================================================
7a6771
--- gdb-7.11.50.20160716.orig/gdb/xtensa-tdep.c	2016-07-16 14:35:45.437503096 +0200
7a6771
+++ gdb-7.11.50.20160716/gdb/xtensa-tdep.c	2016-07-16 14:35:47.531519949 +0200
7a6771
@@ -1638,8 +1638,7 @@
7a6771
 
7a6771
       if (len > (callsize > 8 ? 8 : 16))
7a6771
 	internal_error (__FILE__, __LINE__,
7a6771
-			_("unimplemented for this length: %d"),
7a6771
-			TYPE_LENGTH (type));
7a6771
+			_("unimplemented for this length: %d"), len);
7a6771
       areg = arreg_number (gdbarch,
7a6771
 			   gdbarch_tdep (gdbarch)->a0_base + 2 + callsize, wb);
7a6771
 
7a6771
@@ -1713,18 +1712,18 @@
7a6771
 {
7a6771
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
7a6771
   int i;
7a6771
-  int size, onstack_size;
7a6771
+  LONGEST size, onstack_size;
7a6771
   gdb_byte *buf = (gdb_byte *) alloca (16);
7a6771
   CORE_ADDR ra, ps;
7a6771
   struct argument_info
7a6771
   {
7a6771
     const bfd_byte *contents;
7a6771
-    int length;
7a6771
+    ssize_t length;
7a6771
     int onstack;		/* onstack == 0 => in reg */
7a6771
     int align;			/* alignment */
7a6771
     union
7a6771
     {
7a6771
-      int offset;		/* stack offset if on stack.  */
7a6771
+      ssize_t offset;		/* stack offset if on stack.  */
7a6771
       int regno;		/* regno if in register.  */
7a6771
     } u;
7a6771
   };
7a6771
@@ -1748,9 +1747,10 @@
7a6771
         {
7a6771
 	  struct value *arg = args[i];
7a6771
 	  struct type *arg_type = check_typedef (value_type (arg));
7a6771
-	  fprintf_unfiltered (gdb_stdlog, "%2d: %s %3d ", i,
7a6771
-			      host_address_to_string (arg),
7a6771
-			      TYPE_LENGTH (arg_type));
7a6771
+	  const char *arg_type_len_s = pulongest (TYPE_LENGTH (arg_type));
7a6771
+
7a6771
+	  fprintf_unfiltered (gdb_stdlog, "%2d: %s %s ", i,
7a6771
+			      host_address_to_string (arg), arg_type_len_s);
7a6771
 	  switch (TYPE_CODE (arg_type))
7a6771
 	    {
7a6771
 	    case TYPE_CODE_INT:
7a6771
@@ -1820,8 +1820,8 @@
7a6771
 	  info->align = TYPE_LENGTH (builtin_type (gdbarch)->builtin_long);
7a6771
 	  break;
7a6771
 	}
7a6771
-      info->length = TYPE_LENGTH (arg_type);
7a6771
       info->contents = value_contents (arg);
7a6771
+      info->length = TYPE_LENGTH (arg_type);
7a6771
 
7a6771
       /* Align size and onstack_size.  */
7a6771
       size = (size + info->align - 1) & ~(info->align - 1);
7a6771
@@ -1866,7 +1866,7 @@
7a6771
 
7a6771
       if (info->onstack)
7a6771
 	{
7a6771
-	  int n = info->length;
7a6771
+	  ssize_t n = info->length;
7a6771
 	  CORE_ADDR offset = sp + info->u.offset;
7a6771
 
7a6771
 	  /* Odd-sized structs are aligned to the lower side of a memory
7a6771
@@ -1882,7 +1882,7 @@
7a6771
 	}
7a6771
       else
7a6771
 	{
7a6771
-	  int n = info->length;
7a6771
+	  ssize_t n = info->length;
7a6771
 	  const bfd_byte *cp = info->contents;
7a6771
 	  int r = info->u.regno;
7a6771