http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742
--- Comment #4 from dnovillo at google dot com <dnovillo at google dot com> 2012-12-20 18:23:55 UTC --- On Thu, Dec 20, 2012 at 1:21 PM, tmsriram at google dot com <gcc-bugzi...@gcc.gnu.org> wrote: > However, with function multiversioning, this will become a problem as > multiversioning does not treat two decls with different target attributes > as > identical. Since we are enabling multiversioning by default, atleast in > C++ > front-end for now, IMO, it is better to insist that the definition and > declaration contain identical target attributes. Unfortunately, we cannot do that. A lot of existing code relies on this attribute merging. The cleanest approach here is probably to add an additional 'mv' attribute to explicitly enable multiversioning. Breaking the existing semantics is going to break a lot of code. Diego.