diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-27 19:20:19 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-27 19:20:19 +0000 |
commit | 488133ac66acbad4fbb7177438c6a651c3de8a07 (patch) | |
tree | f502522737a39b8803377a20fa7f25073cbd16d1 /libobjc | |
parent | 5ed3bd072fbadb6e5dbac35a56dd35e94827b04d (diff) | |
download | gcc-488133ac66acbad4fbb7177438c6a651c3de8a07.tar.gz |
2008-05-27 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r136046
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@136051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r-- | libobjc/ChangeLog | 5 | ||||
-rw-r--r-- | libobjc/encoding.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index 046b652248b..df30eaae50c 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-25 Alan Modra <amodra@bigpond.net.au> + + * encoding.c (strip_array_types): Rename from get_inner_array_type. + (rs6000_special_round_type_align): Update. + 2008-05-09 Julian Brown <julian@codesourcery.com> * Makefile.in (LTLDFLAGS): New. diff --git a/libobjc/encoding.c b/libobjc/encoding.c index e65634103aa..93395ddaffc 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -78,7 +78,7 @@ Boston, MA 02110-1301, USA. */ #define DFmode _C_DBL -#define get_inner_array_type(TYPE) ({const char *_field = (TYPE); \ +#define strip_array_types(TYPE) ({const char *_field = (TYPE); \ while (*_field == _C_ARY_B)\ {\ while (isdigit ((unsigned char)*++_field))\ @@ -115,9 +115,7 @@ static int __attribute__ ((__unused__)) not_target_flags = 0; #define rs6000_special_round_type_align(STRUCT, COMPUTED, SPECIFIED) \ ({ const char *_fields = TYPE_FIELDS (STRUCT); \ ((_fields != 0 \ - && TYPE_MODE (TREE_CODE (TREE_TYPE (_fields)) == ARRAY_TYPE \ - ? get_inner_array_type (_fields) \ - : TREE_TYPE (_fields)) == DFmode) \ + && TYPE_MODE (strip_array_types (TREE_TYPE (_fields))) == DFmode) \ ? MAX (MAX (COMPUTED, SPECIFIED), 64) \ : MAX (COMPUTED, SPECIFIED));}) /* FIXME: The word 'fixme' is insufficient to explain the wrong-ness |