Author: theraven
Date: Mon Jul 4 17:04:56 2011
New Revision: 33455
URL: http://svn.gna.org/viewcvs/gnustep?rev=33455&view=rev
Log:
Two small ARC fixes:
- Make objc_retain() check for stack blocks and implicitly copy them. This
fixes the case where a block pointer is stored in an object-typed variable and
is assigned.
- Tweak objc_retainAutoreleaseReturnValue() so that the ARC optimiser doesn't
detect that the body looks like a call to objc_retainAutoreleaseReturnValue()
and replace it with an infinitely recursive call.
The second fix now means that arc.m will compile with clang without producing a
function that calls itself.
Modified:
libs/libobjc2/trunk/arc.m
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs