diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-25 03:58:15 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-25 03:58:15 +0000 |
commit | eec9c06d24dabd621190ce6659da7c73512af1e3 (patch) | |
tree | 10de1a929aea6ab2bd2733ac21e937d4ec186730 /libobjc | |
parent | 8a803f3e1c68580727f3705fd37ed0e671a9a0f8 (diff) | |
download | gcc-eec9c06d24dabd621190ce6659da7c73512af1e3.tar.gz |
Delete get_inner_array_type. Use strip_array_types instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135858 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 |