This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: d10v sizeof (long long)
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- To: Jackie Smith Cashion <jsmith at redhat dot com>
- Cc: GDB Patches <gdb-patches at sources dot redhat dot com>
- Date: 03 Dec 2001 22:31:30 -0500
- Subject: Re: RFA: d10v sizeof (long long)
- References: <3C0C1A14.58B9D2E9@redhat.com>
Approved.
Jackie Smith Cashion <jsmith@redhat.com> writes:
>
> The following patch changes the size of the d10v long long from 4 to 8
> to agree with the d10v gcc.
>
>
> 2001-12-03 Jackie Smith Cashion <jsmith@redhat.com>
>
> * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
>
>
> *** d10v-tdep.c.orig Mon Dec 3 18:26:23 2001
> --- d10v-tdep.c Mon Dec 3 18:26:29 2001
> *************** d10v_gdbarch_init (struct gdbarch_info i
> *** 1524,1530 ****
> set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
> set_gdbarch_int_bit (gdbarch, 2 * TARGET_CHAR_BIT);
> set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> ! set_gdbarch_long_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> /* NOTE: The d10v as a 32 bit ``float'' and ``double''. ``long
> double'' is 64 bits. */
> set_gdbarch_float_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> --- 1524,1530 ----
> set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
> set_gdbarch_int_bit (gdbarch, 2 * TARGET_CHAR_BIT);
> set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> ! set_gdbarch_long_long_bit (gdbarch, 8 * TARGET_CHAR_BIT);
> /* NOTE: The d10v as a 32 bit ``float'' and ``double''. ``long
> double'' is 64 bits. */
> set_gdbarch_float_bit (gdbarch, 4 * TARGET_CHAR_BIT);
>