[cfe-commits] [PATCH] Add -fobjc-direct-class-refs
John McCall
rjmccall at apple.com
Sat Aug 25 14:40:59 PDT 2012
On Aug 25, 2012, at 2:34 PM, Jonathan Schleifer wrote:
> Am 25.08.2012 um 23:22 schrieb John McCall:
>
>> It's pretty useful to be able to catch an arbitrary exception from either language — for one, it's a hard requirement of @finally that a single personality can catch anything. It also means that C++11's std::exception_ptr will correctly be able to shift your exceptions around between threads. It's also what Clang happens to enforce, so you'll need to add a bunch of new checking if you don't want to do it. :)
>
> That indeed sounds desirable…
>
>> You don't need to depend on the full libstdc++; you can just rely on the ABI-level library (libsupc++ / libc++abi).
>
> … while this does not. I'd like to not depend on anything C++ related at all, so that I could even compile with a GCC that only has --enable-languages=c,objc.
Ultimately it's your call, but as someone who supports quite a lot of ObjC developers, there are many, many more ObjC++ programmers than there are people rolling with bizarre hand-configured GCCs.
Having the ABI not use mangled symbols in the GNUstep namespace seems quite reasonable, though.
John.
More information about the cfe-commits
mailing list