<div dir="ltr">IIRC, attribute merging largely happens in mergeDeclAttribute: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?revision=222906&view=markup#l2124">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?revision=222906&view=markup#l2124</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 6:27 PM, Robinson, Paul <span dir="ltr"><<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank">Paul_Robinson@playstation.sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm starting to look into Aaron Ballman's request to diagnose the cases<br>
where the OptimizeNone attribute "wins" over things like MinSize.  This<br>
is leading me through a maze of twisty little passages all different.<br>
<br>
One case that came up in my experiments is when you have (say) always_inline<br>
on a function declaration, and optnone on the function's definition.  The<br>
existing detection logic seems to work only when the conflicting attributes<br>
are on the same declaration. Seems like there would have to be some place<br>
where attributes from the two declarations would be mashed together, but I'm<br>
not finding it; could somebody please point me in the right direction?<br>
Thanks,<br>
--paulr<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>