[PATCH] Sema: Treat dllimport globals without explicit storage class as extern

Reid Kleckner rnk at google.com
Thu May 15 11:52:17 PDT 2014


Did this ever land?


On Sun, Mar 23, 2014 at 11:57 AM, Richard Smith <richard at metafoo.co.uk>wrote:

> LGTM
>
>
> On Sat, Mar 22, 2014 at 10:15 AM, Nico Rieck <nico.rieck at gmail.com> wrote:
>
>> On 21.03.2014 01:19, Richard Smith wrote:
>> > * goes on the right.
>> > [...]
>> > 'i' and 'e' should be capitalized.
>>
>> That's what I get for copy & paste without looking closely... ;)
>>
>> > You don't have any tests for the attribute being in the declarator
>> chunks,
>> > rather than in the decl specifiers. Please add such tests.
>>
>> Done, treating all three attribute placements the same, similar to other
>> attributes. I noticed that Clang and GCC handle such attributes
>> differently, i.e. GCC rejects something like
>>   int *__attribute__((visibility("hidden"))) v;
>>
>> > Move the getAttr into the assert, so we trivially remove the whole
>> thing in
>> > an NDEBUG build.
>>
>> Done.
>>
>> -Nico
>>
>>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140515/d3cd2a32/attachment.html>


More information about the cfe-commits mailing list