diff options
| author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-03 10:39:40 +0000 |
|---|---|---|
| committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-03 10:39:40 +0000 |
| commit | 01f22049fe2de771c0007532c78687e242aefe03 (patch) | |
| tree | e1ffb847625d35dfc015c16b1b4b9a99af984e6f /gcc | |
| parent | 88464727158f09c8cd2582f57ec00908e52b6bfd (diff) | |
| download | ppe42-gcc-01f22049fe2de771c0007532c78687e242aefe03.tar.gz ppe42-gcc-01f22049fe2de771c0007532c78687e242aefe03.zip | |
Fixed typo causing bloat when compiling ObjC programs with GNU runtime
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56753 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/objc/objc-act.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0eaa72bf669..ce31e9aeb56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it> + + PR objc/5956: + * objc/objc-act.c (build_typed_selector_reference): Fix typo which + was causing the new selector never to match the existing ones + (Patch by Alexander Malmberg <alexander@malmberg.org>). + 2002-09-03 Graham Stott <graham.stott@btinternet.com> * config/i386/i386.md ("femms"): Add "memory" attr "none". diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 7a1f82b39d0..cba9ddea8a3 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1978,8 +1978,8 @@ get_proto_encoding (proto) identifier_node that represent the selector. */ static tree -build_typed_selector_reference (ident, proto) - tree ident, proto; +build_typed_selector_reference (ident, prototype) + tree ident, prototype; { tree *chain = &sel_ref_chain; tree expr; @@ -1987,14 +1987,14 @@ build_typed_selector_reference (ident, proto) while (*chain) { - if (TREE_PURPOSE (*chain) == ident && TREE_VALUE (*chain) == proto) + if (TREE_PURPOSE (*chain) == prototype && TREE_VALUE (*chain) == ident) goto return_at_index; index++; chain = &TREE_CHAIN (*chain); } - *chain = tree_cons (proto, ident, NULL_TREE); + *chain = tree_cons (prototype, ident, NULL_TREE); return_at_index: expr = build_unary_op (ADDR_EXPR, |

