[cfe-dev] Where do attributes get merged?

Robinson, Paul Paul_Robinson at playstation.sony.com
Tue Dec 9 18:27:38 PST 2014


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





More information about the cfe-dev mailing list