diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-22 21:32:49 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-22 21:32:49 +0000 |
commit | 6cbcc94e29404428827a6a52b64f34cf13b13b21 (patch) | |
tree | 49c4c090e82902ba6934f4337db7669d748ced84 /gcc | |
parent | bc5415d6c934be52639934eeada51d79682ffa69 (diff) | |
download | gcc-6cbcc94e29404428827a6a52b64f34cf13b13b21.tar.gz |
In gcc/objc/:
2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/41108
* objc-act.c (objc_generate_write_barrier): Added assert to make sure
this function is only called with the next runtime.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167054 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/objc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index e9132901375..5f8d8443378 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,9 @@ +2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> + + PR objc/41108 + * objc-act.c (objc_generate_write_barrier): Added assert to make sure + this function is only called with the next runtime. + 2010-11-20 Jakub Jelinek <jakub@redhat.com> PR c/46547 diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 7f8a7ab71dc..efd4909d364 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -4655,6 +4655,10 @@ objc_generate_write_barrier (tree lhs, enum tree_code modifycode, tree rhs) tree result = NULL_TREE, outer; int strong_cast_p = 0, outer_gc_p = 0, indirect_p = 0; + /* This function is currently only used with the next runtime with + garbage collection enabled (-fobjc-gc). */ + gcc_assert (flag_next_runtime); + /* See if we have any lhs casts, and strip them out. NB: The lvalue casts will have been transformed to the form '*(type *)&expr'. */ if (TREE_CODE (lhs) == INDIRECT_REF) |