projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove perror from ld_assemble, ld_compile and ld_nm
[deliverable/binutils-gdb.git]
/
gdb
/
mn10300-tdep.c
diff --git
a/gdb/mn10300-tdep.c
b/gdb/mn10300-tdep.c
index 98660485f7ca7a325a468202f52b76906316d04f..5d960347d21c9a41fdc810fdab5a320ab689ec65 100644
(file)
--- a/
gdb/mn10300-tdep.c
+++ b/
gdb/mn10300-tdep.c
@@
-107,9
+107,9
@@
mn10300_type_align (struct type *type)
case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
- for (i = 0; i <
TYPE_NFIELDS (type
); i++)
+ for (i = 0; i <
type->num_fields (
); i++)
{
{
- int falign = mn10300_type_align (
TYPE_FIELD_TYPE (type, i
));
+ int falign = mn10300_type_align (
type->field (i).type (
));
while (align < falign)
align <<= 1;
}
while (align < falign)
align <<= 1;
}
@@
-143,8
+143,8
@@
mn10300_use_struct_convention (struct type *type)
case TYPE_CODE_UNION:
/* Structures with a single field are handled as the field
itself. */
case TYPE_CODE_UNION:
/* Structures with a single field are handled as the field
itself. */
- if (
TYPE_NFIELDS (type
) == 1)
- return mn10300_use_struct_convention (
TYPE_FIELD_TYPE (type, 0
));
+ if (
type->num_fields (
) == 1)
+ return mn10300_use_struct_convention (
type->field (0).type (
));
/* Structures with word or double-word size are passed in memory, as
long as they require at least word alignment. */
/* Structures with word or double-word size are passed in memory, as
long as they require at least word alignment. */
This page took
0.023762 seconds
and
4
git commands to generate.