[cfe-dev] Where do attributes get merged?

David Majnemer david.majnemer at gmail.com
Tue Dec 9 21:13:08 PST 2014


IIRC, attribute merging largely happens in mergeDeclAttribute:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?revision=222906&view=markup#l2124

On Tue, Dec 9, 2014 at 6:27 PM, Robinson, Paul <
Paul_Robinson at playstation.sony.com> wrote:

> I'm starting to look into Aaron Ballman's request to diagnose the cases
> where the OptimizeNone attribute "wins" over things like MinSize.  This
> is leading me through a maze of twisty little passages all different.
>
> One case that came up in my experiments is when you have (say)
> always_inline
> on a function declaration, and optnone on the function's definition.  The
> existing detection logic seems to work only when the conflicting attributes
> are on the same declaration. Seems like there would have to be some place
> where attributes from the two declarations would be mashed together, but
> I'm
> not finding it; could somebody please point me in the right direction?
> Thanks,
> --paulr
>
>
> _______________________________________________
> 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/20141209/25d2125c/attachment.html>


More information about the cfe-dev mailing list