[Bug lto/61043] LTO accumulates CPU requirements from all input objects

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 4 16:39:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61043

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to andysem from comment #8)
> Created attachment 39751 [details]
> A new testcase which produces invalid code with gcc 5.4

I think this testcase is violating C++ ODR.  In that
INSTRUCTION_SET::my_simd_func_impl is the same between the TUs.  If you had
used an anonymous namespace, it should have worked correctly.  If anonymous
namespace does not work, please file a separate bug.


More information about the Gcc-bugs mailing list