aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-07 16:05:19 +0000
committerJeff Law <law@redhat.com>1996-08-07 16:05:19 +0000
commit0d43c8e71131733b3e5d50df8454b2fbd7ac0c76 (patch)
tree06cf45175c5cd1e0e7543f94bd91ec7e732cd598 /gdb/hppa-tdep.c
parent484c464505f3200bb949b448dcb71963538da9bb (diff)
downloadgdb-0d43c8e71131733b3e5d50df8454b2fbd7ac0c76.zip
gdb-0d43c8e71131733b3e5d50df8454b2fbd7ac0c76.tar.gz
gdb-0d43c8e71131733b3e5d50df8454b2fbd7ac0c76.tar.bz2
* valops.c (call_function_by_hand): Handle aligning stacks that
grow up correctly. * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define. (STACK_ALIGN): Define. * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte alignment on structs/unions. Fixing assorted structure passing/return problems reported by the net.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 63183a4..77faf25 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1797,7 +1797,7 @@ hppa_alignof (type)
return hppa_alignof (TYPE_FIELD_TYPE (type, 0));
case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
- max_align = 2;
+ max_align = 1;
for (i = 0; i < TYPE_NFIELDS (type); i++)
{
/* Bit fields have no real alignment. */