diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-05-25 16:59:56 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-05-25 16:59:56 +0000 |
commit | 263d02e208ea5a96ab9341c260654c7e77214254 (patch) | |
tree | eea22957d83bdfb3863f2eda9c9b6f9d7aeb0eb4 | |
parent | 8352cbb413ca035b1a646cc0e595a45cdd6e1426 (diff) | |
download | gcc-263d02e208ea5a96ab9341c260654c7e77214254.zip gcc-263d02e208ea5a96ab9341c260654c7e77214254.tar.gz gcc-263d02e208ea5a96ab9341c260654c7e77214254.tar.bz2 |
objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance mismatch code for VECs.
* objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
mismatch code for VECs.
From-SVN: r159834
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index c78ca37..743764b 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,5 +1,10 @@ 2010-05-25 Nathan Froyd <froydnj@codesourcery.com> + * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance + mismatch code for VECs. + +2010-05-25 Nathan Froyd <froydnj@codesourcery.com> + * objc-act.c (objc_build_constructor): Take a VEC instead of a tree. Use build_constructor instead of build_constructor_from_list. (objc_build_string_object): Build a VEC argument for diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index db5862f..5961531 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -2086,7 +2086,7 @@ objc_build_constructor (tree type, VEC(constructor_elt,gc) *elts) #ifdef OBJCPLUS /* Adjust for impedance mismatch. We should figure out how to build CONSTRUCTORs that consistently please both the C and C++ gods. */ - if (!TREE_PURPOSE (elts)) + if (!VEC_index (constructor_elt, elts, 0)->index) TREE_TYPE (constructor) = init_list_type_node; #endif |