mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128. Document type sizes for hppa*-*-hpux* compilers available to me.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
|
||||||
|
|
||||||
|
* hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
|
||||||
|
Document type sizes for hppa*-*-hpux* compilers available to me.
|
||||||
|
|
||||||
2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
|
2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
|
||||||
|
|
||||||
* hppam3-nat.c: Delete obsolete file.
|
* hppam3-nat.c: Delete obsolete file.
|
||||||
|
@ -5064,6 +5064,36 @@ hppa_fetch_pointer_argument (struct frame_info *frame, int argi,
|
|||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Here is a table of C type sizes on hppa with various compiles
|
||||||
|
and options. I measured this on PA 9000/800 with HP-UX 11.11
|
||||||
|
and these compilers:
|
||||||
|
|
||||||
|
/usr/ccs/bin/cc HP92453-01 A.11.01.21
|
||||||
|
/opt/ansic/bin/cc HP92453-01 B.11.11.28706.GP
|
||||||
|
/opt/aCC/bin/aCC B3910B A.03.45
|
||||||
|
gcc gcc 3.3.2 native hppa2.0w-hp-hpux11.11
|
||||||
|
|
||||||
|
cc : 1 2 4 4 8 : 4 8 -- : 4 4
|
||||||
|
ansic +DA1.1 : 1 2 4 4 8 : 4 8 16 : 4 4
|
||||||
|
ansic +DA2.0 : 1 2 4 4 8 : 4 8 16 : 4 4
|
||||||
|
ansic +DA2.0W : 1 2 4 8 8 : 4 8 16 : 8 8
|
||||||
|
acc +DA1.1 : 1 2 4 4 8 : 4 8 16 : 4 4
|
||||||
|
acc +DA2.0 : 1 2 4 4 8 : 4 8 16 : 4 4
|
||||||
|
acc +DA2.0W : 1 2 4 8 8 : 4 8 16 : 8 8
|
||||||
|
gcc : 1 2 4 4 8 : 4 8 16 : 4 4
|
||||||
|
|
||||||
|
Each line is:
|
||||||
|
|
||||||
|
compiler and options
|
||||||
|
char, short, int, long, long long
|
||||||
|
float, double, long double
|
||||||
|
char *, void (*)()
|
||||||
|
|
||||||
|
So all these compilers use either ILP32 or LP64 model.
|
||||||
|
TODO: gcc has more options so it needs more investigation.
|
||||||
|
|
||||||
|
-- chastain 2003-12-18 */
|
||||||
|
|
||||||
static struct gdbarch *
|
static struct gdbarch *
|
||||||
hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||||
{
|
{
|
||||||
@ -5144,9 +5174,13 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||||||
set_gdbarch_deprecated_register_bytes
|
set_gdbarch_deprecated_register_bytes
|
||||||
(gdbarch, gdbarch_num_regs (gdbarch) * tdep->bytes_per_address);
|
(gdbarch, gdbarch_num_regs (gdbarch) * tdep->bytes_per_address);
|
||||||
set_gdbarch_long_bit (gdbarch, tdep->bytes_per_address * TARGET_CHAR_BIT);
|
set_gdbarch_long_bit (gdbarch, tdep->bytes_per_address * TARGET_CHAR_BIT);
|
||||||
set_gdbarch_long_long_bit (gdbarch, 64);
|
|
||||||
set_gdbarch_ptr_bit (gdbarch, tdep->bytes_per_address * TARGET_CHAR_BIT);
|
set_gdbarch_ptr_bit (gdbarch, tdep->bytes_per_address * TARGET_CHAR_BIT);
|
||||||
|
|
||||||
|
/* The following gdbarch vector elements are the same in both ILP32
|
||||||
|
and LP64, but might show differences some day. */
|
||||||
|
set_gdbarch_long_long_bit (gdbarch, 64);
|
||||||
|
set_gdbarch_long_double_bit (gdbarch, 128);
|
||||||
|
|
||||||
/* The following gdbarch vector elements do not depend on the address
|
/* The following gdbarch vector elements do not depend on the address
|
||||||
size, or in any other gdbarch element previously set. */
|
size, or in any other gdbarch element previously set. */
|
||||||
set_gdbarch_function_start_offset (gdbarch, 0);
|
set_gdbarch_function_start_offset (gdbarch, 0);
|
||||||
|
Reference in New Issue
Block a user