mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-24 10:19:16 +08:00
In gcc/objc/: 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
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. From-SVN: r167054
This commit is contained in:
parent
f8d0a23d6c
commit
d925c9eb81
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user