[cfe-dev] [PATCH] Round 3: add unconditional support for block signatures

Blaine Garst blaine at apple.com
Mon Feb 22 17:58:37 PST 2010


On Feb 22, 2010, at 5:53 PM, Fariborz Jahanian wrote:

> You want to remove #ifdef'ed out code in your test case.
> 
> Also, this test may or may not pass for 32bit mode. So, you may want to add something
> like -triple x86_64-unknown-unknown  to command line.

Yes, I remembered that moments after I sent out the patch.


The #if 0 code is non-trivial, why require it to be removed?

Blaine

> 
> - Fariborz
> 
> 
> On Feb 22, 2010, at 5:30 PM, Blaine Garst wrote:
> 
>> Thanks to Fariborz suggestion that I write a unit test I discovered that clang was not emitting the type signature information for global blocks.
>> 
>> While there I renamed his "types" field internally to "signature" to reflect its more natural name which I will be using in the runtime.
>> 
>> More significantly, I realized that we can recover the unused-by-the-runtime (1<<29) bit now that unconditionally mark (1<<30).  This will enable the compiler to (re)use that bit sometime in the future.
>> 
>> Test "blocksignature.c" attached.
>> 
>> <clang-4.patch>
>> <blocksignature.c>
>> 
>> Blaine
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/ba467ff5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocksignature.c
Type: application/octet-stream
Size: 3160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/ba467ff5/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/ba467ff5/attachment-0001.html>


More information about the cfe-dev mailing list