diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-18 18:34:44 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-18 18:34:44 +0000 |
commit | dd26ec9b7a48438fea4c3e1455dc5f1d2058ae48 (patch) | |
tree | 95fe73a50e370097cf19656ef27e5cbf18c21d0a /gcc | |
parent | f57c55dba4480b2389b2ab409c8abe7c329982a2 (diff) | |
download | gcc-dd26ec9b7a48438fea4c3e1455dc5f1d2058ae48.tar.gz |
In gcc/:
2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from 'apple/trunk' branch on FSF servers.
* c-parser.c (c_parser_objc_type_name): Adapted to new parser the
following Objective-C change:
2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
Radar 4301047
* c-parse.in (objc_quals): Build objc qualifier list same way
as gcc-3.3
In gcc/testsuite/:
2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/proto-qual-1.m: Adjust test for GNU runtime to match
bugfix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165656 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/c-parser.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/proto-qual-1.m | 10 |
4 files changed, 18 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 677a1ac46a2..9254a12c430 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> + + Merge from 'apple/trunk' branch on FSF servers. + * c-parser.c (c_parser_objc_type_name): Adapted to new parser the + following Objective-C change: + + 2005-10-10 Fariborz Jahanian <fjahanian@apple.com> + + Radar 4301047 + * c-parse.in (objc_quals): Build objc qualifier list same way + as gcc-3.3 + 2010-10-18 Jan Hubicka <jh@suse.cz> * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p, diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 8676a66de75..6a7d7c6671f 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -7228,7 +7228,7 @@ c_parser_objc_type_name (c_parser *parser) || token->keyword == RID_BYREF || token->keyword == RID_ONEWAY)) { - quals = chainon (quals, build_tree_list (NULL_TREE, token->value)); + quals = chainon (build_tree_list (NULL_TREE, token->value), quals); c_parser_consume_token (parser); } else diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e8ed7fc5e6..d8833731236 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> + + * objc.dg/proto-qual-1.m: Adjust test for GNU runtime to match + bugfix. + +2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> Merge from 'apple/trunk' branch on FSF servers. diff --git a/gcc/testsuite/objc.dg/proto-qual-1.m b/gcc/testsuite/objc.dg/proto-qual-1.m index ac650aa25a7..ed2c97b45ef 100644 --- a/gcc/testsuite/objc.dg/proto-qual-1.m +++ b/gcc/testsuite/objc.dg/proto-qual-1.m @@ -44,20 +44,10 @@ static void scan_initial(const char *pattern) { int main(void) { meth = [proto descriptionForInstanceMethod: @selector(address:with:)]; -#ifndef __NEXT_RUNTIME__ - scan_initial("O@%u@%u:%uRN@%uo^^S%u"); -#else - /* The NEXT runtime tries to be compatible with gcc-3.3 */ scan_initial("O@%u@%u:%uNR@%uo^^S%u"); -#endif CHECK_IF(offs3 == offs2 + aligned_sizeof(id) && totsize == offs3 + aligned_sizeof(unsigned)); meth = [proto descriptionForClassMethod: @selector(retainArgument:with:)]; -#ifndef __NEXT_RUNTIME__ - scan_initial("Vv%u@%u:%uoO@%un^*%u"); -#else - /* The NEXT runtime tries to be compatible with gcc-3.3 */ scan_initial("Vv%u@%u:%uOo@%un^*%u"); -#endif CHECK_IF(offs3 == offs2 + aligned_sizeof(id) && totsize == offs3 + aligned_sizeof(char **)); return 0; } |